Open NimoLululu opened 5 months ago
Mmmh, I have never used RStudio so I don't know much
Normally you are using the Rstudio image defined here: https://github.com/MaastrichtU-IDS/RStudio
It is based on the most popular docker image for deploying RStudio (Rocker). It should handle installing packages out of the box (that's kind of the minimum to do when you configure such image)
I'd recommend to paste your problem in a LLM, they are quite good giving guidance to fix such basic sysadmin bugs
And bring the changes to the Dockerfile
so it's fixed for everyone using the image
@seunAdeks
I just deployed the terra package on Rstudio (DSRI) and it works just fine. See the screenshot.
You need to switch to the terminal tab and install the dependencies first
sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install libgdal-dev libgeos-dev libproj-dev
Then back to the console terminal to install the library with R-dependencies:
install.packages(c("raster", "Rcpp"))
install.packages('terra')
@vemonet
Would this make sense to add these dependencies to the dockerfile of the dsri RStudio image ?
I don't think so, this is too specific and would just be a bloatware mostly.
Hi there, I am trying to use DSRI to run my project. some packages could be installed successfully on my local PC. however, it doesn't work via Rsuodio server...
Here is the error message:
The downloaded source packages are in ‘/tmp/RtmpN52xWI/downloaded_packages’
have you ever encountered this before? how did you fix it ?
Thanks !