googledrive (version 0.0.0.9000)

drive_is_published: Check if Google Drive file is published

Description

Check if Google Drive file is published

Usage

drive_is_published(file, verbose = TRUE)

Arguments

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 as_id(), or a dribble.

verbose

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

Value

An object of class dribble, a tibble with one row per item.

Examples

Run this code
# NOT RUN {
## Upload file to check publication status
file <- drive_upload(R.home('doc/BioC_mirrors.csv'),
  type = "spreadsheet")

## Check publication status
drive_is_published(file)

## Publish file
drive_publish(file)

## Check publication status agian
drive_is_published(file)

## Unpublish file
drive_unpublish(file)

## Clean up
drive_rm(file)
# }

Run the code above in your browser using DataLab