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.

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