There has quit some bugs on RStudio.Cloud and PC like r package installation/update, kindly assist...
RStudio.Cloud
> sessionInfo()
R version 4.1.0 (2021-05-18)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 16.04.7 LTS
Matrix products: default
BLAS: /usr/lib/atlas-base/atlas/libblas.so.3.0
LAPACK: /usr/lib/atlas-base/atlas/liblapack.so.3.0
My PC
> sessionInfo()
R version 4.1.0 (2021-05-18)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 20.04.2 LTS
Disclaimer: As a confirmed Mac user since 1984, I know virtually nothing about Ubuntu so will not venture any guesses about your issues installing and updating packages on the PC. To help those familiar with Ubuntu solve your problems, you should be as specific as possible, including all error messages.
For RStudio Cloud, I notice that you have not updated your project's Ubuntu from 16.04.7 to 20.04.2. See the post from April 5 on their What's New page: RStudio Cloud. Perhaps they are not providing compiled package binaries for the older OS.
That's all I have. Good luck!
You havent detailed even a single error here, so it will be impossible for anyone to understand what your issue is, let alone help you...
Just a thought.
Somebody upgraded Cloud
OS
cheerful.
> sessionInfo()
R version 4.1.0 (2021-05-18)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 20.04.2 LTS