View source: R/zenodo_upload.R
zenodo_upload | R Documentation |
Search for files and then upload them to Zenodo.
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
)
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 |
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. |
#### 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
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.