Message-ID: <25914.38353.610417.230351@rob.eddelbuettel.com>
Date: 2023-10-26T16:37:37Z
From: Dirk Eddelbuettel
Subject: [R-pkg-devel] API client package failing due to API authentication
In-Reply-To: <CABm0ymkJvxQPL7eqOjbhvJJHrPYzQc8dJcMmvQJUsRD0GOqLqg@mail.gmail.com>
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