importCharacter: Import character from google drive

Description Usage Arguments Value

View source: R/importAndProcess.R

Description

Provided a regex or fileID this will import the character from your google drive so it can be used in utility functions. Will ask for googledrive authentication on first load. If you are using Rstudio server, you can authenticate using another machine and move the generated .httr-oauth file to your working directory.

Usage

1
2
importCharacter(regex = NULL, fileID = NULL, file = NULL, output = NULL,
  overwrite = TRUE, ...)

Arguments

regex

A regular expression that matches the file name. If there are multiple matches, the most recently edited file will the chosen

fileID

A googledrive file ID.

file

path to file

output

if provided, the file will be saved here. if not, a temporary file will be used

overwrite

If TRUE the new file will overwrite the old one. Not important if output isn't provided as the file will be deleted eventually

...

Variables to pass to googledrive::drive_find (if regex is given) or googledrive::drive_get (if fileID is given).

Value

The output is a nested list extracted from the original XML file, edited to make certain fields more computer readable.


oganm/import5eChar documentation built on Aug. 16, 2018, 4:35 a.m.