memoise (version 1.1.0)

cache_s3: Amazon Web Services S3 Cache Amazon Web Services S3 backed cache, for remote caching.

Description

Amazon Web Services S3 Cache Amazon Web Services S3 backed cache, for remote caching.

Usage

cache_s3(cache_name, algo = "sha512")

Arguments

cache_name

Bucket name for storing cache files.

algo

The hashing algorithm used for the cache, see digest for available algorithms.

Examples

Run this code
# NOT RUN {
# }
# NOT RUN {
# Set AWS credentials.
Sys.setenv("AWS_ACCESS_KEY_ID" = "<access key>",
           "AWS_SECRET_ACCESS_KEY" = "<access secret>")

# Set up a unique bucket name.
s3 <- cache_s3("unique-bucket-name")
mem_runif <- memoise(runif, cache = s3)
# }
# NOT RUN {

# }

Run the code above in your browser using DataCamp Workspace