csmpi_write: Write an R object to the cloud.

Description Usage Arguments

View source: R/agnostic_write.R

Description

Write an R object to the cloud.

Usage

1
2
3
4
5
csmpi_write(obj, key, cloud_name, storage_format, params,
  use_disk_cache = getOption("csmpi.use_disk_cache", FALSE),
  num_retries = getOption("csmpi.num_retries", 3),
  overwrite_disk_cache = FALSE,
  overwrite_cloud_object = getOption("csmpi.force_write", TRUE))

Arguments

obj

ANY. The object to write to the cloud.

key

simple string. The key to record the object with.

cloud_name

simple string. The name of the cloud interface to use.

storage_format

simple_string. The name of the disk interface to use.

params

list. Additional arguments to pass to interface methods.

use_disk_cache

logical. Whether or not to cache the object on disk. Defaults to the option csmpi.use_disk_cache, or FALSE if the option is not set.

num_retries

numeric. How many attempts to write before raising an error. Defaults to the option csmpi.num_retries, or 3 if the option is not set.

overwrite_disk_cache

logical. If the object is already cached on disk, do we want to overwrite the cached copy?

overwite_cloud_object

logical. If the key already exists in the cloud, do we want to overwrite it with the current object?


abelcastilloavant/csmpi documentation built on May 24, 2019, 7:21 p.m.