bspm
bspm copied to clipboard
Does not work inside RStudio
If you open a script in RStudio, write library(lib)
where lib
is a library which is not installed, RStudio will prompt you to install it:
but if you click "Install", installation from source is triggered, not the R-CRAN-*
packages.
Yeap, this is a known issue. It works fine if you just call install.packages
or update.packages
manually, but RStudio apparently does its own thing when you click "Install" in that message, and bypasses our mechanism to intercept install.packages
. Any clue on how this could work would be appreciated.
I have opened a question on RCommunity
This is a current limitation: https://github.com/rstudio/rstudio/issues/10945. Unless RStudio allows the system settings to be loaded in the child process, unfortunately there's nothing we can do.
I find that install.packages
also does not work in RStudio - I get the cannot connect to the system package manager
error. Works fine running R in the terminal.
I find that
install.packages
also does not work in RStudio - I get thecannot connect to the system package manager
error. Works fine running R in the terminal.
I think this is a very different issue than what's discussed here
Yes, it's definitely a different issue. Please see closed issues, and open a new one with more details if that didn't solve your problem.
This has been addressed in https://github.com/rstudio/rstudio/pull/12176 and listed for the next release of RStudio.
And working since release 2022.12.0.