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

Preview page code snippet #553

Closed
sellorm opened this issue Nov 5, 2021 · 4 comments
Closed

Preview page code snippet #553

sellorm opened this issue Nov 5, 2021 · 4 comments
Labels
bug an unexpected problem or unintended behavior

Comments

@sellorm
Copy link
Contributor

sellorm commented Nov 5, 2021

The code snippet is very useful, but doesn't work out of the box

library(pins)
board <- board_rsconnect(server = "https://utah.company.com/rsc")
#> Error: `server` must be one of "cheddar", "utah.company.com", or "connect.companyservices.com".
pin_read(board, "mark.sellors/palmer_penguins")
#> Error in check_board(board, "pin_read()", "pin_get()"): object 'board' not found

Created on 2021-11-05 by the reprex package (v2.0.1)

It would be great if it did, or, if that's not possible, a brief explanation of the required parameters of a template snippet could be provided instead.

@hadley
Copy link
Member

hadley commented Dec 9, 2021

Do we expect people to generally auth with envvar or rsconnect (assuming I fix #567)? i.e. which of the following would it be better to generate?

board <- board_rsconnect("envvar", server = "https://utah.company.com/rsc")
board <- board_rsconnect("rsconnect", server = "utah.company.com")

cc @juliasilge

@hadley hadley added the bug an unexpected problem or unintended behavior label Dec 9, 2021
@sellorm
Copy link
Contributor Author

sellorm commented Dec 9, 2021

Judging from the examples people have shared in other issues, I'd have to vote for "envvar".

@juliasilge
Copy link
Member

I agree with @sellorm about "envvar" being the better option here for folks, based on what we already see people using and based on how people are encouraged to set up content on Connect in its docs.

@hadley hadley closed this as completed in 3798d89 Dec 13, 2021
@github-actions
Copy link

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.

@github-actions github-actions bot locked and limited conversation to collaborators Aug 27, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug an unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

3 participants