save_files: Save a downloaded zip file to the appropriate folder

Description Usage Arguments Examples

View source: R/create_folders.R

Description

Saves the zip file in the "/Original Deposit" folder in the project folder, and extracts the zip file, minus the Manifest, into the "/QDR Prepared" subfolder

Usage

1
save_files(zip, data, folder = getwd())

Arguments

zip

A downloaded zip file as a raw vector

data

A dataverse dataset object

folder

A folder, typically the project's folder on Dropbox

Examples

1
2
3
4
5
6
## Not run: 
data <- get_dataset("doi:10.5064/F6NUVQRR")
zip <- download_files(data)
save_files(zip, data)

## End(Not run)

QualitativeDataRepository/dvcurator documentation built on Nov. 8, 2021, 10 a.m.