Installing packages


#1

Hi team,

I am usually an R user and will need some time to dig into Julia and get familiar with it. In the meantime, I was hoping to use some of my existing R code. However, this code relies on certain packages and Jupyter tells me that the package library is not writable, so I cannot install them.

Any suggestions?

Cheers,
Flurin


#2

Hi Flurin,

I think you can add a folder from your workspace to the libPaths stack, so this worked for me:

mypackagepath = "/home/jovyan/work/workspace/my_rpackages"
dir.create(mypackagepath)
.libPaths(c(mypackagepath,.libPaths()))

and then you can install packages and they will be installed in your workspace. Hope this helps…