csmpi_custom_write: Write to the cloud using custom cloud and disk interfaces.

Description Usage Arguments

View source: R/agnostic_write.R

Description

Write to the cloud using custom cloud and disk interfaces.

Usage

1
2
3
4
5
6
csmpi_custom_write(obj, key, cloud_interface, disk_interface, 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), cloud_name_,
  storage_format_)

Arguments

obj

ANY. The object to write to the cloud.

key

simple string. The key to record the object with.

cloud_interface

CloudInterface object. The cloud interface to use.

disk_interface

DiskInterface object. 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?

cloud_name_

simple_string. The name of the cloud interface, used to create unique file names for caching. If not provided, will be computed from the cloud interface using non-standard evaluation.

storage_format_

simple_string. The name of the disk interface, used to create unique file names for caching. If not provided, will be computed from the disk interface using non-standard evaluation.


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