bspm icon indicating copy to clipboard operation
bspm copied to clipboard

Does not work inside RStudio

Open raffaem opened this issue 2 years ago • 7 comments

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:

image

but if you click "Install", installation from source is triggered, not the R-CRAN-* packages.

raffaem avatar Apr 01 '22 14:04 raffaem

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.

Enchufa2 avatar Apr 01 '22 14:04 Enchufa2

I have opened a question on RCommunity

raffaem avatar Apr 20 '22 08:04 raffaem

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.

Enchufa2 avatar Apr 20 '22 08:04 Enchufa2

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.

kendonB avatar May 30 '22 23:05 kendonB

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 think this is a very different issue than what's discussed here

raffaem avatar May 31 '22 04:05 raffaem

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.

Enchufa2 avatar May 31 '22 07:05 Enchufa2

This has been addressed in https://github.com/rstudio/rstudio/pull/12176 and listed for the next release of RStudio.

Enchufa2 avatar Oct 18 '22 20:10 Enchufa2

And working since release 2022.12.0.

Enchufa2 avatar Dec 19 '22 00:12 Enchufa2