Problem: The number of calls to the free version of the CoinGecko API has recently been significantly reduced: from ca. 50 calls/min to only 10-30 calls/min. This causes tests and examples in the documentation to fail (at build time) with the HTTP status of 429. Another reason why tests started failing on CRAN is because CRAN changed their policy towards the \donttest command in documentation - by default, examples that are wrapped in \donttest are in fact tested.
Solution: Use the @examplesIf in documentation (instead of the standard @examples), in combination with a non-public function that checks if the API rate is exceeded. Also, update the documentation accordingly (i.e. warn the users about the very limited number of calls they can now make with the free version of the API).
Problem: The number of calls to the free version of the CoinGecko API has recently been significantly reduced: from ca. 50 calls/min to only 10-30 calls/min. This causes tests and examples in the documentation to fail (at build time) with the HTTP status of 429. Another reason why tests started failing on CRAN is because CRAN changed their policy towards the
\donttest
command in documentation - by default, examples that are wrapped in\donttest
are in fact tested.Solution: Use the
@examplesIf
in documentation (instead of the standard@examples
), in combination with a non-public function that checks if the API rate is exceeded. Also, update the documentation accordingly (i.e. warn the users about the very limited number of calls they can now make with the free version of the API).