Skip to content
Prev 56047 / 63424 Next

Problem building rmarkdown vignettes with child

Which R version are you using to produce the problem?

A few first indications:

- The regex in ".install_extras" does not match your file endings: Change "Rmd_tmp$" into "Rmd_t$"

- Try "output: rmarkdown::html_vignette" instead of "output: html_document"
  in the header of the file "ABVignetteWithLocalChild.Rmd" (and possibly other "*.Rmd"s)

- Try to specify the child doc name directly in the chunks via "```{r child = "NoBuildVignette.Rmd_t"}"
  instead of "```{r includChild, child = child_docs}"
  Note the possible typo in the tag "includChild" (-> "includeChild"?) (and possibly other "*.Rmd"s)

PS: You can find a working example of child Rmds for a CRAN package here:

https://github.com/aryoda/tryCatchLog/tree/master/vignettes
On Wed, 2018-11-07 at 13:33 +0100, Witold E Wolski wrote: