You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have various complex builds that embed knitrd documents from templated sub-documents, as well as Rmd files that rely on state set in previously run Rmd files from earlier in the same book build.
Is there a default setting in the ottrpal::bookdown_to_leanpub() function that clears state when each new Rmd file is executed? I can build books fine in RStudio via the book build tools, but using ottrpal::bookdown_to_leanpub() I get not found errors where state set from other files is not available.
The text was updated successfully, but these errors were encountered:
Hi @psychemedia sorry for my slow response. Thanks for your interest in ottrpal and your idea contributions here!
The inner workings of bookdown_to_leanpub depend on bookdown which run each file individually and sequentially based on what's in the _bookdown.yml file.
I'm not sure I completely understand the ask here. Do you think you could link me to an example or write a toy example?
I don't have a minimal example to hand, but the idea was along lines of suppose I have a book constructed from two Rmd files. The first sets a = 1, the second uses a. Ideally, I'd like to run both files in the same scope so variables set from the first Rmd file can be referenced by the second.
In passing, I think that quarto offers a leanpub flavoured markdown output, so for future rather than legacy projects, .qmd and the quarto publishing route look promising for LeanPub publications.
In passing, I think that quarto offers a leanpub flavoured markdown output, so for future rather than legacy projects, .qmd and the quarto publishing route look promising for LeanPub publications.
I have various complex builds that embed
knitr
d documents from templated sub-documents, as well as Rmd files that rely on state set in previously run Rmd files from earlier in the same book build.Is there a default setting in the
ottrpal::bookdown_to_leanpub()
function that clears state when each new Rmd file is executed? I can build books fine in RStudio via the book build tools, but usingottrpal::bookdown_to_leanpub()
I get not found errors where state set from other files is not available.The text was updated successfully, but these errors were encountered: