bulk_update_file_metadata: Updates a list of files based on their id and corresponding...

Description Usage Arguments See Also Examples

View source: R/update_file_metadata.R

Description

The assumption here is that this is based on a dataframe/spreadsheet so that file IDs and metadata vectors are guaranteed to be aligned

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
bulk_update_file_metadata(
  files,
  label = NULL,
  directoryLabel = NULL,
  description = NULL,
  restricted = NULL,
  categories = NULL,
  key = Sys.getenv("DATAVERSE_KEY"),
  server = "data.qdr.syr.edu"
)

Arguments

files

A numerical vector. Dataverse IDs

label

A character vector. Filenames for the files

directoryLabel

A character vector. Folders for the files

description

A character vector. Descriptions for files

restricted

A boolean vector. Whether files are restricted

categories

A character vector. File tags. Mulitple tags are comma or semicomma separated

key

The API key for the dataverse installation

server

The dataverse installation

See Also

update_file_metadata

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
bulk_update_file_metadata(
  c(402881, 395305),
  description = c("new description", "other new description"),
  categories = c("Data", "Documentation"),
  server = "demo.dataverse.org"
)

## End(Not run)

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