-
-
Notifications
You must be signed in to change notification settings - Fork 878
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
Setting eval = FALSE
globally doesn't comment R code when purl()
-ing
#2103
Comments
This is indeed difficult to understand or explain. In short, personally I'm against the idea of checking the R scripts generated from vignettes during Since First, the R script is actually generated by Line 136 in 8ce5e5c
Line 35 in 8ce5e5c
Second, I have tried to disable regenerating R scripts during Lines 42 to 48 in 8ce5e5c
I don't know why it didn't work for torch. There was a brief regression 87d094a but I think it should be very unlikely that the problem was caused by this regression (it only existed for one day---introduced in knitr 1.35 and fixed in 1.36 released one day later). Third, to truly disable generating R scripts from vignettes, package authors can use the
https://yihui.org/knitr/demo/vignette/#vignette-engines Anyway, I can't think of a possible explanation to the original problem. The error log has been deleted on CRAN, and I don't know what the error was now. If we can reproduce this problem in a minimal example, we can investigate again. For now, I'm closing this issue since we haven't received any other similar reports. It's probably a transient issue. Thanks! |
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. |
Related to discussion for mlverse/torch#765
It seems like setting
in a vignette will make chunks NOT be included for execution in the resulting R scripts. This means like the vignette on CRAN will be checked by running purl then executing the R file which will error (as the chunks are not made to be run on CRAN).
If the options is set on the chunk it is taken into account it seems
knitr/R/hooks-extra.R
Line 151 in 887fc44
Is this expected ?
vweave
andvtangle
of knitr are not the easiest to understand. So maybe I am missing somethingcc @dfalbel
The text was updated successfully, but these errors were encountered: