zenodo_upload: Zenodo upload

View source: R/zenodo_upload.R

zenodo_uploadR Documentation

Zenodo upload

Description

Search for files and then upload them to Zenodo.

Usage

zenodo_upload(
  files,
  token = Sys.getenv("zenodo_token"),
  title,
  zipfile = file.path(tempdir(), title),
  meta = list(title = title, description = "", uploadType = "dataset", Creator =
    list(firstname = "", lastname = "", affiliation = "")),
  sandbox = TRUE,
  validate = TRUE,
  verbose = TRUE
)

Arguments

files

Paths of files to upload to Zenodo.

token

Zenodo Personal access token.

title

Metadata field: title of Zenodo repo.

zipfile

Name of the zipped file containing all files. This allows users to preview the folder hierarchy on the Zenodo website.

meta

Additional Zenodo repo metadata.

sandbox

Whether to use the Zenodo or Zenodo Sandbox API.

validate

Whether to validate if each files was published.

verbose

Print messages.

Source

#### Installing zen4R #### ## has some system deps that have to be installed beforehand. sudo apt-get install raptor2-utils sudo apt-get install rasqal-utils sudo apt-get install librdf0-dev

Examples

 
files <- sapply(seq_len(3), function(i){
    tmp <- tempfile(fileext = ".txt")
    writeLines(letters, tmp)
    return(tmp)
})
## Not run: 
zout <- zenodo_upload(files=files,
                      title="test_repo")

## End(Not run)

RajLabMSSM/downloadR documentation built on May 12, 2024, 3:22 a.m.