knitr::opts_chunk$set ( collapse = TRUE, warning = TRUE, message = TRUE, width = 120, comment = "#>", fig.retina = 2, fig.path = "README-" )
The package can be installed by enabling the "ropensci"
r-universe, and using install.packages()
:
options (repos = c ( ropensci = "https://ropensci.r-universe.dev", CRAN = "https://cloud.r-project.org" )) install.packages ("deposits")
Alternatively, the package can be installed directly from GitHub with the following command:
remotes::install_github ("ropenscilabs/deposits")
The package can then be loaded for use with:
library (deposits)
All services require users to create an account and then to generate API ("Application Programming Interface") tokens. Click on the following links to generate tokens, also listed as sequences of menu items used to reach token settings:
It is not necessary to create or register applications on any of these
services; this package uses personal tokens only. The tokens need to be
stored as local environment variables the names of which must include the names
of the respective services, as defined by the "name" column returned from
deposits_service()
, as shown above. This can be done as in the following
example:
Sys.setenv ("ZENODO_SANDBOX_TOKEN" = "<my-token")
Alternatively, these tokens can be stored in a ~/.Renviron
file, where they
will be automatically loaded into every R session.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.