board_azure: Use an Azure Blob Storage Container as a board

Description Usage Arguments Examples

View source: R/board_azure.R

Description

Pin data to a container on Azure's blog storage using the AzureStor package.

Usage

1
board_azure(container, n_processes = 10, versioned = TRUE, cache = NULL)

Arguments

container

An azure storage container created by AzureStor::blob_container() or similar.

n_processes

Maximum number of processes used for parallel uploads/downloads.

versioned

Should this board be registered with support for versions?

cache

Cache path. Every board requires a local cache to avoid downloading files multiple times. The default stores in a standard cache location for your operating system, but you can override if needed.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
if (requireNamespace("AzureStor")) {
  # Public access board
  url <- "https://pins.blob.core.windows.net/public-data"
  container <- AzureStor::blob_container(url)
  board <- board_azure(container)
  board %>% pin_read("mtcars")
}

## Not run: 
# To create a board that you can write to, you'll need to supply one
# of `key`, `token`, or `sas` to AzureStor::blob_container()
container <- AzureStor::blob_container(url, key = "my-key")
board <- board_azure(container)
board %>% pin_write(iris)

## End(Not run)

pins documentation built on Oct. 2, 2021, 5:06 p.m.