SO I enter the following code in Rstudio console (presume this is the way to do it!?)
R_LIBS_SITE="C:\\Program Files\\R\\R-4.1.2\\library
and also tried .libPaths(c("C:/Program Files/R/R-4.1.2/library"))
I still end up getting this error message
.libPaths(c("C:/Program Files/R/R-4.1.2/library"))
install.packages("Webr"")
install.packages("webr")
Error in install.packages : Updating loaded packages
install.packages("webr")
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:
"https://cran.rstudio.com/bin/windows/Rtools/
Warning in install.packages :
'lib = "C:/Program Files/R/R-4.1.2/library"' is not writable
Error in install.packages : unable to install packages"