getOSFfile: Download file from Open Science Framework

Description Usage Arguments Value Author(s) See Also Examples

Description

This function downloads a file from the Open Science Framework to some directory

Usage

1
getOSFfile(code, dir = getwd())

Arguments

code

A string indicating either the file link ("https://osf.io/XXXXX/") or just the code (in this case "XXXXX")

dir

A string indicating the directory in which the file should be downloaded

Value

A string indicating the location of the downloaded file.

Author(s)

Sacha Epskamp <mail@sachaepskamp.com>

See Also

readOSF

Examples

1
2
3
4
5
## Not run: 
# Download the Replication Project Psychology master data (https://osf.io/5wup8/):
getOSFfile("5wup8")

## End(Not run)

SachaEpskamp/OSF2R documentation built on May 9, 2019, 12:07 p.m.