I need to install libraries/packages in R Studio. They are not in the default Environment. How do I make the packages permanent?
I want to install tinytex to my R Studio environment, how to I do this?
In order to bake packages into an Environment - you can modify the default environment for your Project (remember to check in with your Admins first, and you may not have permission to do this) or you can make a copy of another environment. This is explained in the Domino Docs:
https://docs.dominodatalab.com/en/latest/user_guide/f51038/environment-management/
Install packages (example are for the Dockerfile) with a direction for a particular repo:
RUN R --no-save -e "install.packages(c('httr'),repos='http://cran.r-project.org')"
Install packages from a default repo:
RUN R --no-save -e "install.packages('rpart')"
Install tinytex:
RUN R --no-save -e "install.packages('tinytex')"
RUN R --no-save -e "tinytex::install_tinytex()"
Comments
0 comments
Please sign in to leave a comment.