Skip to content

Instantly share code, notes, and snippets.

@jdlom
Created November 4, 2021 16:47
Show Gist options
  • Save jdlom/d222d1cdbabbffb4aa80d231fcc04ba1 to your computer and use it in GitHub Desktop.
Save jdlom/d222d1cdbabbffb4aa80d231fcc04ba1 to your computer and use it in GitHub Desktop.
pin_minio_sspcloud
library(magrittr)
library(pins)
board <- pins::board_s3(
bucket = "jdlomenede",
prefix = "my_board/",
versioned = TRUE,
access_key = Sys.getenv("AWS_ACCESS_KEY_ID"),
secret_access_key = Sys.getenv("AWS_SECRET_ACCESS_KEY"),
session_token = Sys.getenv("AWS_SESSION_TOKEN"),
credential_expiration = NULL,
profile = NULL,
region = "",
endpoint = paste0("http://",Sys.getenv("AWS_S3_ENDPOINT")),
cache = NULL
)
board %>% pin_write(mtcars, "mtcars")
board %>% pin_read("mtcars")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment