mantaXfer: raw REST API Manta Caller for mantaPut mantaGet and related...

Description Usage Arguments Value

View source: R/mantaXfer.R

Description

Note getURL verbose = TRUE writes to stderr - invisible on Windows R.

Usage

1
2
mantaXfer(action, method, filename, buffer, returnmetadata = FALSE,
  returnbuffer = FALSE, md5 = FALSE, headers, verbose = FALSE)

Arguments

action

character, optional. curlEscaped path to a manta object.

method

character, required. "GET", or "PUT" or "HEAD"

filename

optional. Path to local file for PUT or GET

buffer

optional. Raw buffer to put.

returnmetadata

logical required. For GET function returns metadata.

returnbuffer

logical required. For GET function returns buffer.

md5

logical optional. Test md5 hash of data before/after transfer

headers,

array of named characters, optional. The headers follow the RCurl structure of vector of characters where HTTP header tags are the names, values as named characters, no semicolons or delimiters.

verbose

logical, optional. Passed to RCurl GetURL, Set to TRUE to see background REST communication on stderr which is invisible on Windows

Value

TRUE or FALSE depending on success of PUT transfer on GET buffer=TRUE it returns the downloaded buffer


joyent/mantaRSDK documentation built on May 19, 2019, 10:43 p.m.