Rich Shepard
2021-Aug-30 18:28 UTC
[R] bookdown: build using pdflatex from source directory
I have a dead tree copy of 'R for Data Science' and want a PDF that's more efficiently accessed when I'm working with R. Installed here are all the files in r4ds-master/. Reading the online copy of 'bookdown: Authoring Books and Technical Documents with R Markdown' I'm not seeing how to build the pdf copy from the source located in ~/R/r4ds-master/ and I'm running R in a different virtual terminal. Would the command (issued in R): bookdown::render_book("R/r4ds-master/rmarkdown.Rmd") compile the entire book? Rich
Rui Barradas
2021-Aug-30 20:45 UTC
[R] bookdown: build using pdflatex from source directory
Hello, Assuming the file index.Rmd is in R/r4ds-master, try bookdown::render_book("R/r4ds-master/index.Rmd", output_format = "bookdown::pdf_book") Hope this helps, Rui Barradas ?s 19:28 de 30/08/21, Rich Shepard escreveu:> I have a dead tree copy of 'R for Data Science' and want a PDF that's more > efficiently accessed when I'm working with R. > > Installed here are all the files in r4ds-master/. Reading the online > copy of > 'bookdown: Authoring Books and Technical Documents with R Markdown' I'm not > seeing how to build the pdf copy from the source located in > ~/R/r4ds-master/ > and I'm running R in a different virtual terminal. > > Would the command (issued in R): > bookdown::render_book("R/r4ds-master/rmarkdown.Rmd") > compile the entire book? > > Rich > > ______________________________________________ > R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code.