Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cloud_check produce better error when RSTUDIO_CLOUD_REVDEP_KEY unset #366

Open
aronatkins opened this issue Jul 6, 2023 · 0 comments
Open

Comments

@aronatkins
Copy link

revdepcheck::cloud_check() was suggested by usethis::use_release_issue() when trying to release rsconnect (an rstudio/posit package).

For a first-time user, its output is less than helpful:

revdepcheck::cloud_check()
#> ℹ Building package tarball
#> Error: Cloud error (403): Forbidden
#> Message: Forbidden

The documentation for revdepcheck::cloud_check() does not suggest that RSTUDIO_CLOUD_REVDEP_KEY is needed. I eventually found the cloud vignette (https://revdepcheck.r-lib.org/articles/cloud.html), but that was only after looking at the source, seeing references to RSTUDIO_CLOUD_REVDEP_KEY and then searching the repo for other uses.

I also found mentions of RSTUDIO_CLOUD_REVDEP_KEY while searching our internal Slack for revdepcheck::cloud_check() references. I eventually got the right answer (request a key) but the path was not obvious.

Could revdepcheck::cloud_check() check for the existence of RSTUDIO_CLOUD_REVDEP_KEY and produce a more helpful error?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant