Hi everyone,
If you want to use RStudio with R 3.6 there is a small error that occurs relating to an issue in the .rprofile file. This is easily rectified.
ISSUE
If you try to upgrade R you might get this error: RStudio Initialization Error - Error occurred during transmission
FIX
You need to remove this the following line, options(error = .domino.handleError)
, from the .Rprofile. You can do so with this command:
sed -i '/options(error/d' /home/ubuntu/.Rprofile
Here is an example of what you can add to your Docker file in an Ubuntu 16.04 Environment:
RUN add-apt-repository 'deb http://cloud.r-project.org/bin/linux/ubuntu xenial-cran35/' && \ apt-get update -y && \ apt-get remove r-base-core -y && \ apt-get install r-base-core=3.6.0* -y && \ sed -i '/options(error/d' /home/ubuntu/.Rprofile ## Update all R packages to be compatible with R3.6 RUN R --no-save -e 'update.packages(checkBuilt = TRUE, ask = FALSE)'
And here is an example of what you can add to your Docker file in an Ubuntu 18.04 Environment:
RUN apt-key adv --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9 && \ add-apt-repository 'deb https://cloud.r-project.org/bin/linux/ubuntu bionic-cran35/' && \ apt-get remove r-base-core -y && \ apt-get install r-base-core=3.6.0* -y && \ sed -i '/options(error/d' /home/ubuntu/.Rprofile ## Update all R packages to be compatible with R3.6 RUN R --no-save -e 'update.packages(checkBuilt = TRUE, ask = FALSE)'
Have a powerful day,
Petter
Comments
0 comments
Please sign in to leave a comment.