Learn R Programming

osfr (version 0.1.1)

path_file: Get file download link for the latest version of a file (for direct reading)

Description

Get file download link for the latest version of a file (for direct reading)

Usage

path_file(id, view_only = NULL)

Arguments

id

Specify the file id (osf.io/XXXXX)

view_only

Specify the view-only link (string)

Value

Return download link (online)

See Also

download_files

Examples

Run this code
# NOT RUN {
read.csv(path_file("5z2bh"))
read.csv(path_file('852dp',
  view_only = 'https://osf.io/jy9gm/?view_only=a500051f59b14a988415f08539dbd491'))
# }

Run the code above in your browser using DataLab