RCall.jl icon indicating copy to clipboard operation
RCall.jl copied to clipboard

How to install R packages though RCall.jl

Open logankilpatrick opened this issue 4 years ago • 2 comments
trafficstars

Hey folks, I don't know if I missed it in the docs but I did not see how to install a R package through Rcall. I posted a SO question here: https://stackoverflow.com/questions/68048899/how-to-install-an-r-package-using-rcall-jl

logankilpatrick avatar Jun 19 '21 16:06 logankilpatrick

Also, @logankilpatrick if you run into problems, you could exit the RCall environment and open your R version and install packages directly inside of the native R REPL and then jump back into RCall mode. I've also found using renv helps preserve the package versions and needed packages properly.

TheCedarPrince avatar Jun 20 '21 20:06 TheCedarPrince

I'm having a related issue and thought I'd revive this existing thread instead of opening a new one.

I can see how this all works out really nicely when working locally (fantastic package by the way). But what if I want to use RCall as a dependency of my own Julia package? Is there an elegant/preferred way of making sure that R package deps are installed (ideally upon load)?

Have posted a more detail question on discourse, but thought it's worth going straight to the source 😄.

Thanks!

pat-alt avatar Jun 22 '22 11:06 pat-alt