The version of rstudio in portage is quite dated as it was released 2 years ago, back in 2020. There have been quite a few rstudio releases since then and many bugs addressed. Please make the newest version of rstudio available through portage. https://www.rstudio.com/blog/rstudio-2022-02-0-what-s-new/
There's a pretty long thread in bug 766294 about the various issues so far :( *** This bug has been marked as a duplicate of bug 766294 ***