Skip to content

Commit 66876aa

Browse files
committed
Update
1 parent ed75226 commit 66876aa

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.DS_Store

-24 KB
Binary file not shown.

build_deploy.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,8 @@ build_site() {
4949
log "Building site..."
5050
start=$SECONDS
5151

52-
# ensure bookdown is installed for rendering
53-
Rscript --vanilla -e 'if (!requireNamespace("bookdown", quietly=TRUE)) install.packages("bookdown")'
52+
# ensure required packages are installed for rendering
53+
Rscript --vanilla -e 'options(repos = c(CRAN = "https://cloud.r-project.org")); for (pkg in c("bookdown", "bslib", "downlit")) if (!requireNamespace(pkg, quietly=TRUE)) install.packages(pkg)'
5454

5555
if [[ -f "_quarto.yml" || -f "quarto.yml" ]]; then
5656
log "Detected Quarto project"
@@ -59,7 +59,7 @@ build_site() {
5959
elif [[ -f "_bookdown.yml" ]] || grep -q "bookdown::" *.Rmd 2>/dev/null; then
6060
log "Detected bookdown project"
6161
ensure_common_r
62-
Rscript --vanilla -e "bookdown::render_book('.', output_dir='${SITE_DIR}')"
62+
Rscript -e "bookdown::render_book('.', output_dir='${SITE_DIR}')"
6363

6464
# move default _book output
6565
if [[ -d "_book" ]]; then

0 commit comments

Comments
 (0)