Skip to content

Instantly share code, notes, and snippets.

@juliasilge
Last active February 21, 2023 22:49
Show Gist options
  • Save juliasilge/b075ea710d61a93bf2c3c2d1e68719ee to your computer and use it in GitHub Desktop.
Save juliasilge/b075ea710d61a93bf2c3c2d1e68719ee to your computer and use it in GitHub Desktop.
How to set up pins on AWS S3
## in command line: aws sso login --profile PowerUser-158990117310
library(pins)
b <- board_s3(
"pins-testing-julia",
profile = "PowerUser-158990117310",
region = "us-east-2"
)
## for a different bucket, see here: https://github.com/rstudio/pins-r/issues/608
## and for GCS:
library(pins)
googleCloudStorageR::gcs_auth("~/posit-gcs-pins.json")
b <- board_gcs("pins-r-dev")
b %>% pin_write(mtcars, "wow-nice-cars")
b %>% pin_write(1:10, "really-great-numbers", type = "json")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment