Download text from google drive as plain text
googledrive_txt_dl(
filename_gd = NULL,
filename_dl = "googledrive_dl_text",
path = "./",
verbose = TRUE
)
The file path or filename of the google doc from google drive.
The filename you want to download the google doc as. Default = "googledrive_dl_text".
The path you want to save this file to. Default = "./"
Logical, indicating whether to print informative messages (default TRUE).
The plain text from the google doc.
# 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')
#> Warning: cannot remove file 'test123123_dl.txt', reason 'No such file or directory'
#> Warning: cannot remove file 'test123123_dl.zip', reason 'No such file or directory'
#> [1] FALSE FALSE