[R] install.packages and package dependencies

Berwin A Turlach berw|n@tur|@ch @end|ng |rom gm@||@com
Wed Feb 12 03:29:39 CET 2025


On Thu, 6 Feb 2025 09:36:23 -0800
arilamstein using gmail.com wrote:

> It appears that install.packages does not automatically install
> package dependencies when the package is installed via a URL. [...]
> When I type getOption('repos') I get:
> 
>                        CRAN
> "https://cran.rstudio.com/"
> attr(,"RStudio")
> [1] TRUE

Do you set this value somewhere (via an environment variable or start
up file)?  Or is it this value because you use RStudio as IDE?

If you use RStudio, please be aware that RStudio has its own version of
install.packages():

RStudio> install.packages
function (...) 
.rs.callAs(name, hook, original, ...)
<environment: 0x12a530f00>

So if you are using RStudio, you will have to talk with Posit about
changing the behaviour of install.packages().

If you want the behaviour of utils::install.packages() to change, I am
sure that R-Core will consider any diff that implements the
new/improved behaviour. :-)

Cheers,

	Berwin



More information about the R-help mailing list