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

drive_link

Retrieve Drive file links


Description

Returns the "webViewLink" for one or more files, which is the "link for opening the file in a relevant Google editor or viewer in a browser".

Usage

drive_link(file)

Arguments

file

Something that identifies the file of interest on your Google Drive. Can be a name or path, a file id or URL marked with as_id(), or a dribble.

Value

Character vector of file hyperlinks.

Examples

## Not run: 
## get a few files into a dribble
three_files <- drive_find(n_max = 3)

## get their browser links
drive_link(three_files)

## 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.