-
-
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
Regression in R 3.4 #2052
Comments
Could you read and follow the issue guide exactly to provide the required information? Otherwise it is usually hard for us to help you. In your case, it's difficult to know what the problem could be without a reproducible example. If it is impractical to provide a reproducible example, it will be helpful to let us know which exact version broke your package (e.g., you said 1.30 works, and does that mean 1.31 broke it?). Thanks! |
Hi, apologies for not fleshing this out fully. I made a skeleton R package with some GHA workflows that demonstrate the issue: ── R CMD check results ───────────────────────────── knitr.regression 0.1.0 ────
Duration: 25.1s
❯ checking running R code from vignettes ...
‘a_vignette.Rmd’ using ‘UTF-8’ ... failed
ERROR
Errors in running code in vignettes:
when running code in ‘a_vignette.Rmd’
...
> knitr::opts_chunk$set(eval = FALSE)
> stop("I shouldn't run!")
When sourcing ‘a_vignette.R’:
Error: I shouldn't run!
Execution halted
1 error ✖ | 0 warnings ✔ | 0 notes ✔
Error: Error: R CMD check found ERRORs |
Yes |
Hmm... That's weird. I looked at the changes in 1.31 but didn't see a possible change that could have led to the breakage: v1.30...v1.31 I'll investigate further. Thanks a lot for the minimal reproducible example! I really appreciate it. |
@cderv Please ignore this issue. I've figured it out. @t-kalinowski It's fixed now. Unfortunately I just made a CRAN release this morning, so I can't make another one in a short time (may need to wait for at least a month for the next CRAN release). Thanks for your patience! |
Hi @yihui - I'm encountering this same issue on R 4.1.1 when running |
@halldc Could you please provide a reproducible example? Thanks! |
@yihui - building on @t-kalinowski's excellent reprex: https://github.com/halldc/knitr.regression/runs/3737702441 |
@halldc You are correct---the check in Github action didn't use the For now, the workaround is to either use I'll fix this problem in the next version of knitr. |
Thanks @yihui! Yep, I reached the same conclusion and I'm using the second option for now. 🙂 FYI - I'm not using |
I have submitted a new version of knitr to CRAN, which is pending manual inspection right now (because CRAN requires at least 7 days between two releases, otherwise a CRAN maintainer will have to manually check it). Hopefully this problem will go away in a day or two. Apologies for the trouble, and thanks for your patience! |
Thanks for the quick resolution, @yihui ! 🎉 |
You are welcome! The new version was accepted on CRAN about 7 hours ago. |
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. |
Hi,
I recently expanded the CI tests for the keras R package and I noticed that R CMD check would fail due to vignette chunks being evaluated that shouldn't be evaluated. It seems that
knitr::opts_chunk$set(eval = FALSE)
isn't respected in the latest few versions of knitr if R <= 3.4. Installing knitr version 1.30 makes my tests pass again.The text was updated successfully, but these errors were encountered: