frictionless-r icon indicating copy to clipboard operation
frictionless-r copied to clipboard

Fix CRAN ERROR for (intended) error in vignette

Open peterdesmet opened this issue 1 year ago • 2 comments
trafficstars

This vignette has a chunk to show that check_package() will return an (informative) error. The code chuck has the option error = TRUE allowing the vignette to ignore it and continue building.

But it seems to raise an ERROR on CRAN (which has check arguments '--no-clean-on-error '). I'm asking rOpenSci what is the best way to fix this.

peterdesmet avatar Aug 29 '24 13:08 peterdesmet

Oh, I didn't know about that! No idea on how to get around this, I'm interested to see what the best way to do this is

PietrH avatar Aug 29 '24 13:08 PietrH

Got an answer:

I think this is https://github.com/yihui/knitr/issues/2338. In short, try setting purl = FALSE in chunks with error = TRUE

Indeed, it is only the r-oldrel-macos checks that are failing on CRAN: Screenshot 2024-08-29 at 17 06 43

I added purl = FALSE, but we will only see the result if we release a patch to CRAN. For now, I'll wait.

peterdesmet avatar Aug 29 '24 15:08 peterdesmet

Late answer: dc2dc03 resolved this issue on CRAN. The data-package.Rmd is published to CRAN and CRAN reports no errors.

peterdesmet avatar Sep 24 '25 15:09 peterdesmet