-
Notifications
You must be signed in to change notification settings - Fork 35
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
Evaluate print in evaluation environment #202
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This creates R CMD CHECK failure for knitr when building vignette
https://github.com/yihui/knitr/actions/runs/9791626150/job/27035802276
* creating vignettes ... ERROR
Error: --- re-building ‘docco-classic.Rmd’ using docco_classic_notangle
Quitting from lines 13-20 [setup] (docco-classic.Rmd)
Error: Error: processing vignette 'docco-classic.Rmd' failed with diagnostics:
object 'visible' not found
--- failed re-building ‘docco-classic.Rmd’
So we need to look to check this
print_env <- new.env(parent = envir) | ||
print_env$value <- value | ||
evalq(print(value), envir = print_env) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
Co-authored-by: Lionel Henry <[email protected]>
Ah the problem is that knitr does this:
|
I made yihui/knitr#2353 so we can eventually drop this extra code. |
Fixes #192
This turned out to be rather straightforward to implement after all the refactoring, and while it's unlikely to affect much user code, I think the changes to the tests demonstrates its utility.