googledrive_txt_dl: Download text from google drive as plain text

googledrive_txt_dlR Documentation

Download text from google drive as plain text

Description

Download text from google drive as plain text

Usage

googledrive_txt_dl(
  filename_gd = NULL,
  filename_dl = "googledrive_dl_text",
  path = "./",
  verbose = TRUE
)

Arguments

filename_gd

The file path or filename of the google doc from google drive.

filename_dl

The filename you want to download the google doc as. Default = "googledrive_dl_text".

path

The path you want to save this file to. Default = "./"

verbose

Logical, indicating whether to print informative messages (default TRUE).

Value

The plain text from the google doc.

Examples

# not run:
# googledrive::drive_auth() # Using the first token you have.
# 1
#
# txt <- googledrive_txt_dl(filename_gd = "test123123_doc",
#                           filename_dl = "test123123_dl",
#                           verbose = FALSE)
# txt
# for good file keeping, I'll delete these
file.remove('test123123_dl.txt', 'test123123_dl.zip')

EmilyMarkowitz-NOAA/NMFSReports documentation built on March 26, 2023, 1:08 a.m.