-
-
Notifications
You must be signed in to change notification settings - Fork 980
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
find_external_resources errs with variable chunk eval #1247
Comments
Duplicate of #1154 |
@yihui Is there a way to suppress that
|
I guess it will require a change in knitr. I'll see how difficult it is. |
Should be fixed now. Thanks for the report! |
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary. |
This test document was trimmed from a much larger one. It shows that a variable used to allow / prohibit the evaluation of a chunk produces an error (which appears to be ignored).
Run the following in the R console:
Here's the output:
The
find_external_resources
function is used byrsconnect
to discover files referenced by an Rmd that need to be included in a deployment bundle:https://github.com/rstudio/rsconnect/blob/def0d46c806588af4b3c45853489eb997c97158d/R/deployDoc.R#L54
We don't really want to execute the document when analyzing it for resources. I was surprised to see this error about
hasNotes
. Thefind_external_resources
function is supposed to be making "best effort" to identify resources.I do not know if this error is preventing resource discovery; it appears to be working fine. The error in my deploy console made me question it.
The text was updated successfully, but these errors were encountered: