Hi folks. I posted this to GitHub, but a contributor there advised me to try this forum
I run a blogdown site and was trying to include a bookdown article in the static
folder, similar as if you would do with xaringan slides.
My goals are:
- Have a online version (Gitbook)
- Output a paper-ish PDF version
Current problems:
- When compiling to Gitbook, some
config
's are not effective (no PDF download, no search) - When compiling to PDF, knit gives the following error (fatal):
Error in if (toc) { : argument is not interpretable as logical
Calls: <Anonymous> ... get_base_format -> do.call -> <Anonymous> -> pandoc_toc_args
Execution halted
Any help is appreciated!
Files & code:
Summary
_output.yml:
bookdown::gitbook:
split_by: none
config:
download: [pdf]
sharing:
github: yes
facebook: no
toolbar:
search: yes
bookdown::pdf_document2:
latex_engine: pdflatex
keep_tex: yes
fig_crop: false
template: null
toc: true
toc_depth: 3
number_sections: true
highlight_bw: true
_bookdown.yml:
book_filename: quals
output_dir: output
head of paper.Rmd:
---
title: 'A Paper'
author: "loikein"
date: "Last updated: `r (Sys.time())`"
documentclass: article
knit: "bookdown::pdf_document2"
site: bookdown::bookdown_site
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(collapse = FALSE, tidy = FALSE, echo = TRUE, eval = FALSE)
```
# Abstract {-}
# Introduction
Some system info:
$ latex --version
pdfTeX 3.14159265-2.6-1.40.20 (TeX Live 2019)
─ Session info ────────────────────────────────────────────────────────────────────────────────────────
setting value
version R version 3.6.2 (2019-12-12)
os macOS Catalina 10.15.3
system x86_64, darwin15.6.0
ui RStudio
language (EN)
collate en_US.UTF-8
ctype en_US.UTF-8
tz Europe/Berlin
date 2020-02-07
─ Packages ────────────────────────────────────────────────────────────────────────────────────────────
package * version date lib source
base64enc 0.1-3 2015-07-28 [1] CRAN (R 3.6.0)
digest 0.6.23 2019-11-23 [1] CRAN (R 3.6.0)
evaluate 0.14 2019-05-28 [1] CRAN (R 3.6.0)
glue 1.3.1 2019-03-12 [1] CRAN (R 3.6.0)
highr 0.8 2019-03-20 [1] CRAN (R 3.6.0)
htmltools 0.4.0 2019-10-04 [1] CRAN (R 3.6.0)
jsonlite 1.6 2018-12-07 [1] CRAN (R 3.6.0)
knitr 1.27 2020-01-16 [1] CRAN (R 3.6.0)
magrittr 1.5 2014-11-22 [1] CRAN (R 3.6.0)
markdown 1.1 2019-08-07 [1] CRAN (R 3.6.0)
mime 0.8 2019-12-19 [1] CRAN (R 3.6.0)
Rcpp 1.0.3 2019-11-08 [1] CRAN (R 3.6.0)
rlang 0.4.2 2019-11-23 [1] CRAN (R 3.6.0)
rmarkdown 2.0 2019-12-12 [1] CRAN (R 3.6.0)
stringi 1.4.5 2020-01-11 [1] CRAN (R 3.6.0)
stringr 1.4.0 2019-02-10 [1] CRAN (R 3.6.0)
tinytex 0.19 2020-01-14 [1] CRAN (R 3.6.0)
xfun 0.12 2020-01-13 [1] CRAN (R 3.6.0)
yaml 2.2.1 2020-02-01 [1] CRAN (R 3.6.2)
[1] /Library/Frameworks/R.framework/Versions/3.6/Resources/library