Re: [Rd] Respecting custom repositories files in interactive/batch R sessions

2022-09-16 Thread Kurt Hornik
> Gabriel Becker writes: Friends, I always keep forgetting how these things currently/precisely work, but I guess the principle is that utils:::.onLoad() does options(repos = c(CRAN = "@CRAN@")) unless the repos option was already set (in the user or site profiles). As the latter are not

Re: [Rd] Respecting custom repositories files in interactive/batch R sessions

2022-09-15 Thread Gabriel Becker
Hi Dirk, So there's a couple of things going on. First off you're correct that that works generally. There are a couple of reasons that made it not. The first is a bug/design error in Rstudio which is causing the R_PROFILE to not be adhered to when you build there. I will be filing a bug regarding

[Rd] Respecting custom repositories files in interactive/batch R sessions

2022-09-15 Thread Gabriel Becker
Hi all, A company I work with mirrors CRAN internally behind its firewall for security (and reproducibility/consistency/etc) reasons. In that case, we would like all R processes (across all the R CMD *, as well as interactive and batch sessions) to automatically hit our cran mirror instead of prom