To use DigitalOcean Spaces as a board, you first need an DigitalOcean space and a storage key. You can sign-up and create those at digitalocean.com.

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.

key, secret

The key and secret for your space. You can create a key and secret in the "Spaces access keys" in your API settings.

The secret is equivalent to a password, so generally should not be stored in your script. The easiest alternative is to store it in the AZURE_STORAGE_KEY environment variable, which board_azure() will use by default.

datacenter

The datacenter name.

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.

See also

board_register

Examples

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