When I create a new Rstudio project using File>New Project my cran mirror settings are often ignored silently and the default (cloud.r-project.org) is used. I tried the following options, in all cases my corporate RSPM was set as the CRAN mirror in the Rstudio global settings and a new Project was created using the File > New Project in Rstudio for each scenario:
|scenario||result of getOption("repos")|
|check "use renv" option while creating project||cloud.r-project.org|
|use renv::activate from console||cloud.r-project.org|
|add line to user Rprofile explicitly setting cran = RSPM; check "use renv" option while creating project||cloud.r-project.org|
|add line to user Rprofile explicitly setting cran = RSPM; use renv::activate() from console||RSPM url|
I expected that in all cases my CRAN mirror from Rstudio settings (i.e., corporate RSPM) would be used.
I'm assuming it's an Rstudio issue having to do with the subprocess that's being used to setup renv in a project, but I thought I'd ask here to confirm that the issue is likely rstudio instead of renv package before filing an issue.