Skip to content

Commit

Permalink
Install webshot if needed, use pacman
Browse files Browse the repository at this point in the history
  • Loading branch information
Blake-Madden committed Sep 19, 2023
1 parent 7484e07 commit 6b379d5
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions docs/manual/index.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,13 @@ pdf-cover: "images/cover.pdf"
---

```{r, include=FALSE}
library(DiagrammeR)
library(webshot)
# Run this if diagrams do not appear in PDF
# or you get an error about HTML in your PDF.
# webshot::install_phantomjs()
if (!require("pacman")) install.packages("pacman")
library(pacman)
pacman::p_load(DiagrammeR, webshot)
if (!webshot::is_phantomjs_installed())
{
webshot::install_phantomjs()
}
```

```{asis, echo=knitr::is_html_output()}
Expand Down

0 comments on commit 6b379d5

Please sign in to comment.