Download files from OSF via a specified file ID. Can be used to download a zip file of all files within a component or "Data" folder in a component.
1 2 | download_files(id, component = FALSE, folders = FALSE,
folder_name = "Data", path)
|
id |
An OSF id to a file or component. |
component |
Specify whether the id is for a component If TRUE, will download each file in the component. Defaults to FALSE. |
folders |
If component = TRUE, specify if the component's data is contained in a folder. If TRUE, will download each file in the component as a .zip file For use with grabbing data from projects. Defaults to FALSE. |
folder_name |
If folders = TRUE, specify the folder name from which to grab zipped data. Defaults to "Data". |
path |
The path to which the file should be downloaded. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.