-
Notifications
You must be signed in to change notification settings - Fork 30
Closed
Description
When rig sets the CRAN repository, it does so by adding:
options(repos = c(CRAN = "https://cloud.r-project.org/"))to library/base/R/Rprofile.
This setting is very aggressive; it cannot be disabled (not even by running with R --vanilla), and because it is set after R starts up, it overwrites RStudio's CRAN settings.
Using any rig version of R will cause warnings to appear in RStudio's Packages options, and the options that control CRAN repositories will not work with any rig version of R.
I would propose the following:
- Before setting the CRAN repository, check to see if it's set to something that appears intentional (e.g. not
@CRAN@). If it appears to be intentionally set, leave it alone instead overwriting the user's preference. - Move the CRAN repository setting from the base library
Rprofileto a regular R startup script, such asRprofile.site. When diagnosing where the CRAN repository is getting set, absolutely no one is going to think to check in the base library. - Set an attribute on the options value to indicate
rigas the origin of the setting.
See also: rstudio/rstudio#13957
Metadata
Metadata
Assignees
Labels
No labels