-
Notifications
You must be signed in to change notification settings - Fork 5
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
Issues with Creating EMARs #122
Comments
For the second issue, I think it can be solved by again providing an optional argument to |
hmm I dunno. What is |
It's a |
hmm I dunno, try reading or stepping through the code to figure out what it does? Or ask the knitr folks... |
the second one seems like is solved by changing the chunk label during knitting to be unique |
This has been filed as an issue / PR in knitr. See: yihui/knitr#2358 |
As a process suggestion, if this issue is not fixed yet here and is waiting on a change in knitr, I would leave it open so that it is still tracked here (and someone coming along with that problem can find it) |
We want to support export of multiverse analysis to EMARs. While we have a working implementation thanks to @hwangkyle, there are still some pending issues (including #116).
Broadly, this is due to how things are implemented in
knitr
:currently,
knitr
exports the R engine which can be accessed usingknitr::knit_engines$get("R")
. But it does not allow us to change the environment in which the code is being evaluated in. This is likely a simple fix, by allowing the environment to be declared as an argument in https://github.com/yihui/knitr/blob/fb1f4231d2df7b156e314686f39fc040ce807513/R/block.R#L187the output does not change unless I set
plot_counter(reset = FALSE)
in the following line: https://github.com/yihui/knitr/blob/fb1f4231d2df7b156e314686f39fc040ce807513/R/block.R#L317I am not sure what
plot_counter()
does or why we need it so I don't know what the solution is here.The text was updated successfully, but these errors were encountered: