View source: R/produce_zenodo_record.R
produce_zenodo_record | R Documentation |
This function allows to deposit a record to
Zenodo repository.
The function use the functions implemented by
zen4r
package.
Blondel, Emmanuel, & Barde, Julien. (2021).
zen4R: R Interface to Zenodo REST API (0.5-2). Zenodo.
https://doi.org/10.5281/zenodo.5741143.
produce_zenodo_record(
mytoken,
myfiles,
delim,
upload_rdata = FALSE,
record_type = "dataset",
record_title,
record_description,
record_authors,
record_license = "CC-BY-SA-4.0",
record_accessRight = "open",
record_version = "1.0",
record_language = "eng",
record_keywords,
record_relatedIdentifier,
record_communities = c("lter-italy", "elter"),
record_grants,
record_publish = FALSE
)
mytoken |
A |
myfiles |
A |
delim |
A |
upload_rdata |
A |
record_type |
A |
record_title |
A |
record_description |
A |
record_authors |
A |
record_license |
A |
record_accessRight |
A |
record_version |
A |
record_language |
A |
record_keywords |
A |
record_relatedIdentifier |
A |
record_communities |
A |
record_grants |
A |
record_publish |
A |
A link (URL) of the deposited record in Zenodo. The user must then:
visit the webpage of record, 2. check the information provided, 3. 'save' and 'publish' the record on Zenodo repository, 4. use the DOI to cite the record.
Alessandro Oggioni, phD oggioni.a@irea.cnr.it
zen4R documentation https://github.com/eblondel/zen4R/wiki
## Not run:
## Not run:
authors <- tibble::tibble(
name = c("Luke", "Leia"),
surname = c("Skywalker", "Organa"),
affiliation = c("Tatooine", "Alderaan"),
orcid = c("0000-0002-7997-219X", "0000-0002-7997-219X")
)
keywords <- c("Star Wars", "species", "films", "planets")
relatedIdentifiers <- tibble::tibble(
relation = c("isSupplementTo", "isPartOf"),
identifier = c("10.1038/s4150-01-0032", "10.1016/j.2051.06.026")
)
grants <- c("871128", "654359", "871126")
produce_zenodo_record(
mytoken = mytoken, # generate your Zenodo token
myfiles = myfile, # provide your file(s)
delim = ";",
upload_rdata = TRUE,
record_title = "The title",
record_description = "This is the description of the record.",
record_authors = authors,
record_keywords = keywords,
record_relatedIdentifier = relatedIdentifiers,
record_communities = "lter-italy",
record_grants = grants,
record_publish = FALSE
)
## End(Not run)
## End (Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.