I had the same problem under Ubuntu 16.04 when using RStudio with R v4.4.0. After updating R to v4.4.4 and running RStudio from terminal it was working fine.
Be aware that R version RStudio uses depends on the way you are starting the application (from desktop or terminal).