reconhub/learn

Installing all necessary packages to compile learn resources in one sweep

mhoehle opened this issue · 2 comments

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...

This is being discussed as a project for tomorrow's hackathon:
RECON-gathering-March-2018/projects#6

The recommended approach (now in the README) is:

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

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