Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Output directory for knitr can only be set as function argument #2

Open
hlapp opened this issue Dec 12, 2014 · 1 comment
Open

Output directory for knitr can only be set as function argument #2

hlapp opened this issue Dec 12, 2014 · 1 comment

Comments

@hlapp
Copy link
Contributor

hlapp commented Dec 12, 2014

If we want the top-level .Rmd file to be rendered to the doc/paper directory, then this output directory needs to be configurable as an option. However, apparently it isn't; only the directory for figure output can be set. This means that rendering the Markdown, HTML, LaTeX, and PDF versions need to be executed as rmarkdown::render() so that the output path can be passed as an argument. That the "Knit HTML" button is not to be used is likely rather undesirable for practical use and teaching purposes.

@cboettig
Copy link

Very good point. I don't use the button that frequently and had forgotten this could only be done in function calls. Given the prevalence of the RStudio button the inability to set this as a configuration feels more like a knitr bug to me, see yihui/knitr#913

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants