From a9cf53cfb992ba9350cfa5534c3d91ddfed29314 Mon Sep 17 00:00:00 2001 From: James Santangelo Date: Thu, 25 Oct 2018 13:00:42 -0400 Subject: [PATCH 1/2] Added webshot fix for building pdf with DiagrammeR --- lec14-datasets.Rmd | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lec14-datasets.Rmd b/lec14-datasets.Rmd index 504a51a..43932cc 100644 --- a/lec14-datasets.Rmd +++ b/lec14-datasets.Rmd @@ -1,6 +1,7 @@ --- title: "Scientific method, team dynamics, and project datasets" author: "Luke Johnston" +output: pdf_document --- ## Lesson preamble: @@ -24,6 +25,12 @@ author: "Luke Johnston" ----- +```{r message=FALSE, warning=FALSE, include=FALSE} +# install.packages("webshot") +webshot::install_phantomjs() +``` + + ## Scientific method From de85589dd90db6296b620fd5b2c0e0c072624539 Mon Sep 17 00:00:00 2001 From: James Santangelo Date: Thu, 25 Oct 2018 13:02:01 -0400 Subject: [PATCH 2/2] Adding webshot to DESCRIPTION in for local pdf building --- DESCRIPTION | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/DESCRIPTION b/DESCRIPTION index b788dc3..9922bde 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -38,6 +38,7 @@ Imports: psych, multcomp, qgraph, - MuMIn + MuMIn, + webshot Remotes: rstudio/rmarkdown