download_osf_files | R Documentation |
Download a list of files from OSF and recreate folder structure locally
download_osf_files(
file_paths,
osf_node_id = "pr6wu",
local_base_dir = "data",
debug = F,
skip_existing = TRUE
)
file_paths |
A character vector of file paths on OSF to download |
osf_node_id |
The OSF node ID where the files are stored (default: "pr6wu") |
local_base_dir |
Base directory to save files locally (default: here::here("data")) |
debug |
Logical, whether to print debugging information (default: TRUE) |
skip_existing |
Logical, skip downloading a file if a file with that name already exists in that path locally |
returns paths to downloaded files
## Not run:
# Download multiple files from OSF
download_osf_files(
file_paths = c(
"lab1/raw_data/file1.csv",
"lab2/processed_data/file2.csv"
),
osf_node_id = "pr6wu"
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.