I have a presentation saved in Google Drive as README and I want to overwrite that presentation with a local file using the path
argument in the hopes that this will preserve the google drive ID for the presentation (and not break the link for my stakeholders). But when I enter the path argument I get an error message:
"Error: Requested parent path
is invalid: neither a folder nor a Team Drive."
library(googledrive)
README <- drive_get('README')
drive_upload(
media = here::here('README.pptx'),
name = 'README',
type = 'presentation',
path = as_id(README), # target destination on drive
overwrite = TRUE
)
Omitting the path argument results in the file being overwritten and a new drive ID being assigned.