Description Usage Arguments Value See Also Examples
View source: R/drive_publish.R
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()
.
1 2 3 | drive_publish(file, ..., verbose = deprecated())
drive_unpublish(file, ..., verbose = deprecated())
|
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:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | # 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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.