[R-pkg-devel] API client package failing due to API authentication
On 26 October 2023 at 11:14, Cole Johanson wrote:
| My package https://github.com/cole-johanson/smartsheetr requires an | environment variable, the API access token, to run most of the functions. | The steps for setting this are documented in the README, but my package is | being auto-rejected by CRAN for failing the examples. | | I have wrapped the examples with the roxygen2 tag *\dontrun*, but it is | still attempting to run the examples. | | Should I report this as a false positive, or is there a step I am missing? You should not attempt to run the examples when they could fail e.g. when no API key is present as it the case for CRAN. Dirk
dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org