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

added a utility function to install packages

Open xiaodaigh opened this issue 6 years ago • 5 comments

Currently,

R"""
install.packages(pkgs)
"""

is failing. So I have added a function to install packages using run

xiaodaigh avatar Oct 12 '19 13:10 xiaodaigh

Try again with the master branch? install.packages(pkgs) should work now on Windows.

randy3k avatar Apr 28 '20 08:04 randy3k

it doesn't. stuck at image

xiaodaigh avatar Apr 28 '20 09:04 xiaodaigh

put this in your .Rprofile

options(repos = c(CRAN = "https://cran.rstudio.com"))

randy3k avatar Apr 28 '20 09:04 randy3k

It still doesn't fix the whole issue, any prompts that pop out will essentially freeze the installation. By the way, I should add that it is only an issue on Windows because of the lack of default R_ReadConsole.

randy3k avatar Apr 28 '20 09:04 randy3k

@randy3k Would it make sense to change this to a documentation change rather than a code change?

palday avatar Jun 22 '20 10:06 palday

Just tested and works fine.

ViralBShah avatar Oct 18 '22 23:10 ViralBShah