qingcurl: qingcurl

Description Usage Arguments Details Value See Also

Description

Create an qingcurl connection

Usage

1
2
3
4
qingcurl(object, bucket, open = "rb", accelerate = FALSE,
  region = Sys.getenv("Qstor_DEFAULT_REGION", "pek3a"),
  key = Sys.getenv("Qstor_ACCESS_KEY_ID"),
  secret = Sys.getenv("Qstor_SECRET_ACCESS_KEY"))

Arguments

object

Character string with the object key, or an object of class “object”. In most cases, if object is specified as the latter.

bucket

Character string with the name of the bucket.

open

One of “r” or “rb”.

region

A character string containing the QingStor region. Ignored if region can be inferred from bucket. If missing, defaults to “us-east-1”.

key

A character string containing an Qingstor Access Key ID. If missing, defaults to value stored in environment variable “Qstor_ACCESS_KEY_ID”.

secret

A character string containing an QingStor Secret Access Key. If missing, defaults to value stored in environment variable “Qstor_SECRET_ACCESS_KEY”.

Details

This function creates a curl connection to be used for asynchronous reading from an Qing object.

Value

If file = NULL, a raw object. Otherwise, a character string containing the file name that the object is saved to.

See Also

get_object, save_object, curl


zhangxing-love/QingStorRSDK_0.1 documentation built on May 4, 2019, 10:17 p.m.