Description Usage Arguments Details Value Author(s) See Also Examples
get.OSFfile
1 2 3 |
code |
Either a full url ("https://osf.io/XXXXX/"), or just the OSF code. |
dir |
Output location (default is |
scanMethod |
Either |
downloadMethod |
One of |
dataSet |
Is the file data set which can be imported using |
dfCln |
Should the variable names be cleaned (replace spaces and punctuation by a period "."). Default is |
Function to download a file hosted on OSF. Modified from code originally written by Sacha Epskamp.
A list object with fields:
Returned if dataSet = TRUE
(default):
df
: A data table generated by tbl_df
from package dplyr
.
info
: Information about the downloaded file including a time stamp, the URL and original row and column names.
Returned if dataSet = FALSE
:
FilePath
: The local path to the downloaded file.
Fred Hasselman, based on code by Sasha Epskamp
Other "get." functions: get.GoogleSheet
,
get.Order
, get.analyses
,
get.zavCode
1 2 | #Get the RP:P data hosted on OSF.
## Not run: dfRPP <- get.OSFfile(code='https://osf.io/fgjvw/', dfCln=TRUE)$df
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.