drive_publish {googledrive} | R Documentation |
Publish (or un-publish) native Google files to the web. Native Google files
include Google Docs, Google Sheets, and Google Slides. The returned
dribble
will have extra columns, published
and revisions_resource
.
Read more in drive_reveal()
.
drive_publish(file, ..., verbose = deprecated()) drive_unpublish(file, ..., verbose = deprecated())
file |
Something that identifies the file(s) of interest on your Google
Drive. Can be a character vector of names/paths, a character vector of file
ids or URLs marked with |
... |
Name-value pairs to add to the API request body (see API docs
linked below for details). For |
verbose |
|
An object of class dribble
, a tibble with one row per file.
There will be extra columns, published
and
revisions_resource
.
Wraps the revisions.update
endpoint:
# Create a file to publish file <- drive_example_remote("chicken_sheet") %>% drive_cp() # Publish file file <- drive_publish(file) file$published # Unpublish file file <- drive_unpublish(file) file$published # Clean up drive_rm(file)