cloud_get: cloud_get

View source: R/cloudstorapi-access.R

cloud_getR Documentation

cloud_get

Description

cloud_list() downloads a file from a Cloudstor folder. The file is opened and read into R using rio, or optionally the file path is returned.

Usage

cloud_get(
  path,
  dest = NULL,
  user = cloud_auth_user(),
  password = cloud_auth_pwd(),
  open_file = TRUE,
  ...
)

Arguments

path

The path to file or folder.

dest

The destination for saving the file.

user

Cloudstor user name

password

Cloudstor password

open_file

If TRUE, open the file using rio. Else, returns the file path

...

pass additional arguments to rio::import()

Value

The file object or folder path is returned, depending on open_file


pdparker/cloudstoR documentation built on Aug. 2, 2022, 12:06 p.m.