Sudo in RStudio Cloud Terminal

Continuing the discussion from Upcoming changes to RStudio Cloud pricing - From the RStudio Education Blog and the Cloud Team:

R and RStudio is astatisttical tools for statisticians but wonder why there has some obtacles:

  • There will be alot of restrictions and obstacles for all users without sudo
  • RStudio.Cloud not yet upgrade to be latest version 2021.9 and also Rversion 4.1.1 or 4.1.2
  • Packages.installation admin privilege error as below
  • Github push error as below
Warning in install.packages("BBmisc", dependencies = TRUE, INSTALL_opts = "--no-lock") :
  'lib = "/opt/R/4.1.0/lib/R/library"' is not writable
Error in install.packages("BBmisc", dependencies = TRUE, INSTALL_opts = "--no-lock") : 
  unable to install packages
/cloud/project$  git config --global user.email "englianhu@gmail.com"
error: could not lock config file /home/rstudio-user/.gitconfig: No such file or directory

Setup own server is another option...