Wrapper with explicit parameters over board_register() to register a DigitalOcean Spaces board.

board_register_dospace(
  name = "dospace",
  space = Sys.getenv("DO_SPACE"),
  key = Sys.getenv("DO_ACCESS_KEY_ID"),
  secret = Sys.getenv("DO_SECRET_ACCESS_KEY"),
  datacenter = Sys.getenv("DO_DATACENTER"),
  cache = board_cache_path(),
  host = "digitaloceanspaces.com",
  path = NULL,
  ...
)

board_dospace(
  name = "dospace",
  space = Sys.getenv("DO_SPACE"),
  key = Sys.getenv("DO_ACCESS_KEY_ID"),
  secret = Sys.getenv("DO_SECRET_ACCESS_KEY"),
  datacenter = Sys.getenv("DO_DATACENTER"),
  cache = NULL,
  host = "digitaloceanspaces.com",
  ...
)

Arguments

name

Board name, used to identify board in actions that affect multiple boards.

space

The name of the DigitalOcean space. Defaults to the DO_SPACE environment variable.

key

The key of the DigitalOcean space. Defaults to the DO_ACCESS_KEY_ID environment variable.

secret

The secret of the DigitalOcean space. Defaults to the DO_SECRET_ACCESS_KEY environment variable.

datacenter

The datacenter of the DigitalOcean space. Defaults to the DO_DATACENTER environment variable.

cache

The local folder to use as a cache, defaults to board_cache_path().

host

The host to use for storage, defaults to "digitaloceanspaces.com".

path

Subdirectory within url

...

Additional parameters stored in the board object.

Details

This function requires a DigitalOcean space to be manually created; otherwise, registering a DigitalOcean space will fail.

See also

board_register

Examples

if (FALSE) { # the following example requires a DigitalOcean Spaces API key board_register_s3(bucket = "s3bucket") }