Skip to content
Prev 57696 / 63421 Next

improving the performance of install.packages

On 08/11/2019 6:17 p.m., Henrik Bengtsson wrote:
If simplifying instructions is the goal, it would be even simpler to 
just install it unconditionally:

install.packages("BiocManager")

Unlike dplyr (the original example in this thread), BiocManager is a 
tiny package with no compiling needed, so it hardly needs any time to 
install.

And as previously mentioned, the backward compatible force=TRUE wouldn't 
help with the bad script at all.  In fact, the bad script could be fixed 
simply by realizing that

install.packages("tidyverse")

means it's actually a bad idea to also include

install.packages("dplyr")

because the former would install dplyr if and only if it was not already 
installed.  So it seems to me that fixing the bad script (by deleting 
one line) is the solution to the problem, not fixing R with a multistage 
series of revisions, tests, etc.

Duncan Murdoch