From jgbr@d|ey1 @end|ng |rom gm@||@com  Fri Nov  8 08:06:49 2019
From: jgbr@d|ey1 @end|ng |rom gm@||@com (Joshua Bradley)
Date: Fri, 8 Nov 2019 02:06:49 -0500
Subject: [Rd] improving the performance of install.packages
Message-ID: <CAKShX4BiuLvT02z9=jR=eqCZLbfb54HWu_sKQU5ni+L7fhjhgQ@mail.gmail.com>

Hello,

Currently if you install a package twice:

install.packages("testit")
install.packages("testit")

R will build the package from source (depending on what OS you're using)
twice by default. This becomes especially burdensome when people are using
big packages (i.e. lots of depends) and someone has a script with:

install.packages("tidyverse")
...
... later on down the script
...
install.packages("dplyr")

In this case, "dplyr" is part of the tidyverse and will install twice. As
the primary "package manager" for R, it should not install a package twice
(by default) when it can be so easily checked. Indeed, many people resort
to writing a few lines of code to filter out already-installed packages An
r-help post from 2010 proposed a solution to improving the default
behavior, by adding "force=FALSE" as a api addition to install.packages.(
https://stat.ethz.ch/pipermail/r-help/2010-May/239492.html)

Would the R-core devs still consider this proposal?

Josh Bradley

	[[alternative HTML version deleted]]



[Rd] improving the performance of install.packages
Joshua Bradley