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
This is because html_preview is not part of pdf_document() arguments, and pdf_document() does not have an ignore ... where those unused argument can go.
We could add this ... argument, like rmarkdown::html_document_base() has, but really this option html_preview is only to be used with github_document() IMO. So maybe setting this option was supposed to be part of build_readme() and not build_rmd() ?
The text was updated successfully, but these errors were encountered:
I'm not so sure that build_rmd() was intended to be a generic function to build any .Rmd. I think the origin story is more that we like having build_readme() and it made sense to implement that as a special case of something slightly more generic. I suspect that the way things are is what's best, for the devtools use cases, than trying to make build_rmd() more general.
That being said, if you want to make a PR with your proposed change, we can discuss further. How is this coming up for you?
devtools::build_rmd()
is supposed to be a generic function to build any rmdCurrently it will error on some format like
rmardown::pdf_document()
(which could be used in vignettes too) because ofdevtools/R/build-readme.R
Lines 33 to 34 in daca0cf
This is because
html_preview
is not part ofpdf_document()
arguments, andpdf_document()
does not have an ignore...
where those unused argument can go.We could add this
...
argument, likermarkdown::html_document_base()
has, but really this optionhtml_preview
is only to be used withgithub_document()
IMO. So maybe setting this option was supposed to be part ofbuild_readme()
and notbuild_rmd()
?The text was updated successfully, but these errors were encountered: