When installing a fresh version of the tidyverse and all dependencies, this can give a two-fold speed-up. Install.packages( "tidyverse", Ncpus = 6) Using it is easy it’s just an additional argument in install.packages(). It doesn’t speed up an individual package installs, but it does allow dependencies to install in parallel, e.g. tidyverse. The first tactic you should use is the Ncpus argument in install.packages() and update.packages(). If I’ve missed any, let me know ( )!ĭo you use Professional Posit Products? If so, checkout out our managed Posit services The purpose of this blog post is to pull together a few different methods for tackling this problem. This is a problem we often solve for our clients - optimising their CI/CD pipelines. Or we are simply updating a large number of packages via update.packages(). Or we are using more continuous integration strategies such as Travis or GitLab-CI, and want quick feedback. For example, packages are getting larger and more complex (tidyverse and friends), so installation just takes longer. The bigger picture is that package installation time is starting to become more of an issue for a number of reasons. Every few weeks or so, a tweet pops up asking about how to speed up package installation in Rĭepending on the luck of twitter, the author may get a few suggestions.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |