Closed muschellij2 closed 3 months ago
For startup/.onAttach, the available.packages calls contrib.url and will have special conditions if CRAN repo not set (getOption("repos") return "@CRAN@"): https://github.com/wch/r-source/blob/6ac28acf314b05b1a913504da10a79cf4fd487de/src/library/utils/R/packages.R#L830 this will call then call chooseCRANmirror https://github.com/wch/r-source/blob/6ac28acf314b05b1a913504da10a79cf4fd487de/src/library/utils/R/packages.R#L834 which will then ask for a mirror and if the code is running a script such as:
.onAttach
available.packages
contrib.url
getOption("repos")
"@CRAN@"
chooseCRANmirror
library(dplyr) library(GGIR) library(purrr)
there are issues.
For startup/
.onAttach
, theavailable.packages
callscontrib.url
and will have special conditions if CRAN repo not set (getOption("repos")
return"@CRAN@"
): https://github.com/wch/r-source/blob/6ac28acf314b05b1a913504da10a79cf4fd487de/src/library/utils/R/packages.R#L830 this will call then callchooseCRANmirror
https://github.com/wch/r-source/blob/6ac28acf314b05b1a913504da10a79cf4fd487de/src/library/utils/R/packages.R#L834 which will then ask for a mirror and if the code is running a script such as:there are issues.