rstudio / pins-r

Pin, discover, and share resources
https://pins.rstudio.com
Other
312 stars 63 forks source link

Unhelpful error when `rsconnect` not installed #560

Closed akgold closed 2 years ago

akgold commented 2 years ago

I just ran the following:

> pins::board_rsconnect()
Error: auth = `auto` has failed to find a way to authenticate
* `server` and `key` not provided for `auth = 'manual'`
* Can't find CONNECT_SERVER and CONNECT_API_KEY envvars for `auth = 'envvar'`
* Can't find any rsconnect::accounts() for `auth = 'rsconnect'`
Run `rlang::last_error()` to see where the error occurred.

However, I actually do have connect accounts initialized. The problem is that I was in a fresh renv project and didn't have rsconnect installed. It would be really helpful if this checked if rsconnect was installed and suggested installing if it's not.

github-actions[bot] commented 2 years ago

This issue has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue.