if (FALSE) {
# Retrieve the Psychology Reproducibility Project from OSF
psych_rp <- osf_retrieve_node("ezum7")
# List all files and directories
osf_ls_files(psych_rp)
# ...only the directories
osf_ls_files(psych_rp, type = "folder")
# ...only PDF files
osf_ls_files(psych_rp, type = "file", pattern = "pdf")
# List the contents of the first directory
osf_ls_files(psych_rp, path = "RPP_SI_Figures")
}
Run the code above in your browser using DataLab