rstudio / pins-r

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

(DRAFT) Read from Connect Vanity Urls #696

Closed slodge closed 1 year ago

slodge commented 1 year ago

Very much draft PR to look at #616

devtools::load_all()

auth <- board_url_auth_connect(key=Sys.getenv("UAT_KEY_1"))

board <- board_url(c(
    my_vanity_url_pin = "https://connect-uat.example.com/example_mtcars_pin/"
  ), 
  auth=auth,
  use_cache_on_failure = FALSE
)

httr::with_verbose({
  board %>% pin_read("my_vanity_url_pin")
})

Currently this code works for the simple case (as required in #616) of providing an API key either directly or via CONNECT_API_KEY, but does not support the rsconnect mechanism where path specific signatureHeaders are required.

Still to do on this PR:

Will put other questions/observations/ideas back in #616

juliasilge commented 1 year ago

@slodge I've got a new board_connect_url() up and running in #706! If you would like to install it to try it out in your situation, that would be super helpful. You can install via devtools::install_github("rstudio/pins-r@board-connect-url").

slodge commented 1 year ago

Closing - team want to go via copy paste of a new board

github-actions[bot] commented 1 year ago

This pull request 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.