reconhub / learn

RECON learn: a free, open platform for training material on epidemics analysis
https://reconlearn.org
Other
35 stars 30 forks source link

Installing all necessary packages to compile learn resources in one sweep #8

Closed mhoehle closed 6 years ago

mhoehle commented 6 years ago

Is there a clever way to install all necessary packages to have blogdown compile the learn ressources in one sweep? Spent 30 minutes continously installing additional packages before the thing compiled...

thibautjombart commented 6 years ago

This is being discussed as a project for tomorrow's hackathon: https://github.com/RECON-gathering-March-2018/projects/issues/6

thibautjombart commented 6 years ago

The recommended approach (now in the README) is:

if (!require("checkpoint")) {
    install.packages("checkpoint")
}

install.packages(
    checkpoint::scanForPackages(use.knitr = TRUE)$pkgs
)