make_or_read2: If a Drive file doesn't exist, get it

Description Usage Arguments Value

Description

A function that determines whether a file exists in Google Drive, and execture

Usage

1
2
make_or_read2(fp = NA_character_, dr_id = "", skip_get_expr = FALSE,
  get_expr = NULL, make_expr = NULL, read_expr = NULL, ...)

Arguments

fp

A file path character string.

dr_id

A Google Drive ID, S3 class drive_id (use as_id).

skip_get_expr

Skip the get_expr step (default is FALSE).

get_expr

An expression used to get the file from its original source.

make_expr

An expression used to create the file.

read_expr

An expression used to read the file.

...

other objects to pass to the expressions

Value

The object that is read or created is returned silently.


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