Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

as_id

Extract and/or mark as file id


Description

Gets file ids from various inputs and marks them as such, to distinguish them from file names or paths.

This is a generic function.

Usage

as_id(x, ...)

Arguments

x

A character vector of file or Team Drive ids or URLs, a dribble or a suitable data frame.

...

Other arguments passed down to methods. (Not used.)

Value

A character vector bearing the S3 class drive_id.

Examples

as_id("123abc")
as_id("https://docs.google.com/spreadsheets/d/qawsedrf16273849/edit#gid=12345")

## Not run: 
x <- drive_find(n_max = 3)
as_id(x)

x <- drive_get("foofy")
as_id(x)

x <- team_drive_find("work-stuff")
as_id(x)

## End(Not run)

googledrive

An Interface to Google Drive

v1.0.1
MIT + file LICENSE
Authors
Lucy D'Agostino McGowan [aut], Jennifer Bryan [aut, cre] (<https://orcid.org/0000-0002-6983-2759>), RStudio [cph, fnd]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.