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

Add knitr option for path #7

Closed
pattyf opened this issue Apr 27, 2019 · 0 comments
Closed

Add knitr option for path #7

pattyf opened this issue Apr 27, 2019 · 0 comments

Comments

@pattyf
Copy link
Member

pattyf commented Apr 27, 2019

Add
knitr::opts_knit$set(root.dir = normalizePath('../'))
to the knitr setup options for the Rmd files for pt2 & 3 (done for pt1) so that the Rmd files can knit in the docs directory but reference the data files from the root directory in any R chunks.

Note: The images directory was moved under docs because it is only used in the Rmarkdown files and the relative path setting only works for chunks (not markdown).

@erthward erthward closed this as completed May 2, 2019
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