drive_read: Read a file from Google Drive.

Description Usage Arguments Value

Description

Read a file from Google Drive.

Usage

1
2
3
4
drive_read(dr_id, .tempfile = TRUE, path = NULL, read_fun, ...)

drive_read_zip(dr_id, .tempdir = TRUE, dir_path = NULL, read_fun,
  target_name, ...)

Arguments

dr_id

a Google Drive object id (use as_id).

.tempfile

logical, Whether to save the file to a tempfile

path

The file path to save the file to.

read_fun

a function to read the object into memory.

...

Arguments to pass to the 'read_fun' function.

.tempdir

logical, Whether to save the .zip file to a temp directory

target_name

If the target is .zip file, what is the name of the folder or file within the compressed .zip file.

Value

an object, format depends on which 'read_fun' is provided.


tiernanmartin/miscgis documentation built on May 31, 2019, 1:19 p.m.