-
Notifications
You must be signed in to change notification settings - Fork 339
Description
Hello, I have two vignettes for an API wrapper package that use NOT_CRAN extensively for documentation. I've used the convention established in packages like googlesheets to have examples render to markdown but not run in CRAN checks.
NOT_CRAN <- identical(tolower(Sys.getenv("NOT_CRAN")), "true")
The vignettes are here: https://github.com/hrecht/censusapi/tree/master/vignettes
After updating to pkgdown 1.5.0 those sections are no longer displaying the code results when knit by pkgdown. When I use the knit button in RStudio they do evaluate properly. The code should get some data via API and then display the first rows using head(). I receive no error messages, but no data is shown in the resulting article pages. All of the text and code compile properly, it's just the code evaluation results that seem to be an issue.
I made one of the two vignettes online-only and removed any NOT_CRAN mentions and that seemed to fix the pkgdown compiling issue for that article. I've troubleshooted but am not totally sure what the issue is in my code. Are there some changes that need to be made in RMarkdown to make code run in pkgdown but not CRAN in the new version?
Thanks for such a great package!