Impossible to install package after R upgrade to 4.2.1
Thanks to the comments from @MrFlick and @BenBolker, I found a solution.
I removed the .Rprofile file that was in my user home directory and that solved the problem.
Use the following command lines in your terminal :
less .Rprofile # to check what was inside the file (prompt was called)
rm .Rprofile # to remove the file
Directory Issue, can't install RStudio Server Packages Ubuntu
After investing the issue further today, I was able to solve it. The problem was due to an outdated version of R, and missing libraries (curl, xml).
the $ sudo apt-get install r-base
command installs whatever version is available on the server.
Therefore it's important to get the latest version
sudo sh -c 'echo "deb http://cran.rstudio.com/bin/linux/ubuntu trusty/" >> /etc/apt/sources.list'
I reinstalled R following this tutorial in case anyone runs into the same issue.
Setting Up R Studio Server On Microsoft Azure
Hope this is helpful
Where to install R packages on Linux server that are to be used by multiple users?
I've never tried this, but I don't see why this wouldn't work:
You can use .libPaths()
to set the library dir (not only to get it), so why don't you have everyone use a common directory that's writeable by everyone as the libpath? Every user can put in their .Rprofile
something like
.libPaths( c(.libPaths(), "/path/to/shared/lib") )
Then that path will be the default place where everyone installs/retrieves packages from.
One problem with this approach is that people will still have their original libPath per person, so if they're trying to update an existing package, it'll update their own version. You can overcome that by setting the libpath to ONLY the new path instead of appending to it.
Note that this can sometimes have bad consequences, sometimes person A's code depends on a certain version of a package, then person B updates the package, then person A runs his code again 5 minutes later and all of a sudden it breaks and they have absolutely no idea why.
How to install R packages in RStudio Server
For whatever reason, there was an issue with the initial installation of Ubuntu Server, and the system was only registering that I had 4 GB on the drive. As a result, I reinstalled Ubuntu Server and it corrected itself, and now there is enough space to install packages.
Related Topics
How to Fix Degree Symbol Not Showing Correctly in R on Linux/Fedora 31
How to Find Changing Points in a Dataset
Change The Year in a Datetime Object in R
R - Insert Row for Missing Monthly Data and Interpolate
How to Predict Survival Probabilities in R
Shiny Datatable in Landscape Orientation
Using Mutate Rowwise Over a Subset of Columns
How to Remove Trailing Zeros in R Dataframe
How to Get The Intersection Point of Two Vector
Generating Dropdown Menu for Plotly Charts
Download File from Internet via R Despite The Popup
Heatmap with Values and Some Additional Features in R
R Bookdown - Custom Title Page
Converting a Long-Formated Dataframe to Wide Format Tidyverse
How to Define a Function in Dplyr
Small Ggplot Object (1 Mb) Turns into 7 Gigabyte .Rdata Object When Saved