This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Help with Rstudio in Anaconda Navigator

Hello,

I was wondering if someone could help me with an issue im having running R studio through anaconda-navigator (in ubuntu).

I've installed RStudio (in anaconda) and everything is working great. When updating packages through the anaconda-navigator environment panel (which should automatically update Rstudio), this doesnt happen.

I realised that the location Anaconda-navigator is saving the R-packages it downloads is not the same as from where RStudio is reading packages from. Long question short, would anyone know how do I change the directory RStudio is reading packages from (permanently), or the reverse, where is anaconda-navigator (for the current environment) saving the R-packages?

Thank you :)

anaconda rstudio ubuntu

Maybe install R packages from rstudio won't have such problem.

It's easier (for me) to keep things organised using a navigator but thanks for sharing your opinion.

1 answer

Ok, I've solved it. I'm posting the response here in case anyone runs into similar issues. I changed the directory using the below in Rstudio:

.libPaths("location of new directory")

Log in to answer this question.