analogsea (version 0.6.0)

as.space: Spaces storage operations

Description

spaces

Retrieve all spaces in your digital ocean account

space_create

Create a new space

Create a new space

Usage

as.space(x)

spaces_GET(spaces_key = NULL, spaces_secret = NULL, ...)

spaces(spaces_key = NULL, spaces_secret = NULL, ...)

space_create(name, spaces_key = NULL, spaces_secret = NULL, ...)

Arguments

x

Object to coerce to a space

spaces_key

(character) String containing a spaces access key. If missing, defaults to value stored in an environment variable DO_SPACES_ACCESS_KEY.

spaces_secret

(character) String containing the secret associated with the spaces key. If missing, defaults to value stored in an environment variable DO_SPACES_SECRET_KEY.

...

Additional arguments passed down to bucketlist, get_bucket, put_bucket functions from the aws.s3 package.

name

(character) Space name.

Examples

Run this code
# NOT RUN {
# list spaces
spaces()

# obtain spaces as a list of space objects
res <- spaces()

# print space summary using a space object
summary(res[['my_space_name']])

# create a new space
space_create('new_space_name')
# }

Run the code above in your browser using DataLab