You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
RStudio Edition : Both
RStudio Version : 1.2.1293, 1.1.463
Steps to reproduce the problem
Remove all RStudio repository settings, so that getOption(repos) returns NULL in a new R session.
Remove the rmarkdown package.
Ensure that it is not possible to install packages from the RStudio global CRAN mirror.
Set a custom repo with a custom name (not CRAN) in your .Rprofile, such that getOption(repos) returns the named character my repo "https://my/repo/url"
Start a new R session.
Attempt to create an R notebook.
Describe the problem in detail
You are prompted to install the rmarkdown package. However, when RStudio attempts to do so, it tries to install from RStudio's global CRAN mirror (not the repo you set), and fails.
This happens because of an asymmetry in dependency checking and dependency installation. The dependency manager assumes the first repo is a CRAN mirror when it is checking to see if packages are available (see #1762).
If RStudio is willing to use a repo as a CRAN mirror when detecting available packages for dependency installation, it should also be willing to use that repo to actually install the packages.
The text was updated successfully, but these errors were encountered:
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs, per https://github.com/rstudio/rstudio/wiki/Issue-Grooming. Thank you for your contributions.
stalebot
added
the
stale
Issues which have been closed automatically due to inactivitiy.
label
Feb 6, 2021
System details
Steps to reproduce the problem
getOption(repos)
returns NULL in a new R session..Rprofile
, such thatgetOption(repos)
returns the named charactermy repo "https://my/repo/url"
Describe the problem in detail
You are prompted to install the rmarkdown package. However, when RStudio attempts to do so, it tries to install from RStudio's global CRAN mirror (not the repo you set), and fails.
This happens because of an asymmetry in dependency checking and dependency installation. The dependency manager assumes the first repo is a CRAN mirror when it is checking to see if packages are available (see #1762).
rstudio/src/cpp/session/modules/ModuleTools.R
Lines 158 to 160 in b171b1a
However, when packages are installed, we only use a mirror named CRAN, or the CRAN mirror in the user's settings.
rstudio/src/cpp/session/modules/SessionDependencies.cpp
Lines 352 to 353 in b171b1a
Describe the behavior you expected
If RStudio is willing to use a repo as a CRAN mirror when detecting available packages for dependency installation, it should also be willing to use that repo to actually install the packages.
The text was updated successfully, but these errors were encountered: