[prev in list] [next in list] [prev in thread] [next in thread] 

List:       r-help
Subject:    Re: [R] bookdown: build using pdflatex from source directory
From:       Rich Shepard <rshepard () appl-ecosys ! com>
Date:       2021-08-30 21:16:17
Message-ID: alpine.LNX.2.20.2108301410150.15422 () salmo ! appl-ecosys ! com
[Download RAW message or body]

On Mon, 30 Aug 2021, Rui Barradas wrote:

> Assuming the file index.Rmd is in R/r4ds-master, try
> bookdown::render_book("R/r4ds-master/index.Rmd", output_format = 
> "bookdown::pdf_book")

Rui,

The build needs to run it from the r4ds-master/ directory. I wondered if
index.rmd was the entry, but didn't try it because the index is at the end
of the book.

The build shows 100% completion, but:
label: unnamed-chunk-67 (with options) 
List of 1
  $ indent: chr "    "

   |......................................................................| 100%
    inline R code fragments

output file: strings.knit.md

Error: Functions that produce HTML output found in document targeting latex output.
Please change the output type of this document to HTML. Alternatively, you can allow
HTML output in non-HTML formats by adding this option to the YAML front-matter of
your rmarkdown file:

   always_allow_html: true

Note however that the HTML output will not be visible in non-HTML formats.

Execution halted
Error in Rscript_render(f, render_args, render_meta, add1, add2) :
   Failed to compile strings.Rmd

And I have no idea how to fix this.

I can try downloading it from github again and see if that makes a
difference.

Many thanks,

Rich

______________________________________________
R-help@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.
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic