drive_link: Retrieve Drive file links

Description Usage Arguments Value Examples

View source: R/drive_browse.R

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

1

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.

Value

Character vector of file hyperlinks.

Examples

1
2
3
4
5
# get a few files into a dribble
three_files <- drive_find(n_max = 3)

# get their browser links
drive_link(three_files)

googledrive documentation built on July 8, 2021, 5:07 p.m.