board_register_s3: Register S3 Board

Description Usage Arguments Details See Also Examples

View source: R/board_registration.R

Description

Wrapper with explicit parameters over board_register() to register an Amazon S3 bucket as a board.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
board_register_s3(
  name = "s3",
  bucket = Sys.getenv("AWS_BUCKET"),
  key = Sys.getenv("AWS_ACCESS_KEY_ID"),
  secret = Sys.getenv("AWS_SECRET_ACCESS_KEY"),
  cache = board_cache_path(),
  host = "s3.amazonaws.com",
  region = NULL,
  path = NULL,
  ...
)

Arguments

name

Optional name for this board, defaults to 's3'.

bucket

The name of the Amazon S3 bucket. Defaults to the AWS_BUCKET environment variable.

key

The key of the Amazon S3 bucket. Defaults to the AWS_ACCESS_KEY_ID environment variable.

secret

The secret of the Amazon S3 bucket. Defaults to the AWS_SECRET_ACCESS_KEY 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 "s3.amazonaws.com".

region

The region to use, required in some AWS regions and to enable V4 signatures.

path

The subdirectory in the repo where the pins will be stored.

...

Additional parameters required to initialize a particular board.

Details

This function requires an Amazon S3 bucket to be manually created; otherwise, registering an S3 board will fail.

When the region parameter is not specified, pins defaults to using AWS V2 signatures; therefore, it is recommended to specify the region to ensure pins makes use of AWS V4 signatures.

See Also

board_register

Examples

1
2
3
4
5
## Not run: 
# the following example requires an Amazon S3 API key
board_register_s3(bucket = "s3bucket")

## End(Not run)

pins documentation built on Jan. 8, 2021, 2:28 a.m.