downloadObject: downloadObject

Description Usage Arguments Examples

Description

downloadObject

Usage

1
2
3
downloadObject(bucketname, src, dest = NULL, resume = TRUE, split = 5,
  method = "aria2", quiet = FALSE, extra = "", .md5 = T, rpc = NULL,
  ...)

Arguments

src

The object path on bucket to be downloaded.

dest

Local destination of file or folder.

resume

Auto resume from failed download or not.

split

How many parts to be split.

method

Same argument in download.file. Supports aria2 if installed.

quiet

Suppress status messages or not.

extra

additional command-line arguments for the "wget", "curl" and "aria2" methods.

.md5

Check md5 after download or not.

rpc

aria2 rpc

...

Arguments pass to download.file

Examples

1
2
3
4
downloadObject('ross-test', 'jingyi.pdf')
downloadObject('ross-test', 'jingyi.pdf', '~')
downloadObject('ross-test', 'jingyi.pdf', '~/jingyi2.pdf', resume = F, method = 'aria2', quiet = T)
downloadObject('ross-test', 'jingyi.pdf', '~/jingyi2.pdf', resume = T, method = 'wget', quiet = F)

gahoo/ross documentation built on May 16, 2019, 5:35 p.m.