Skip to contents

An R Package to develop and manage Domain Specific Metadata Schemes (dmdSchemes)


DOI License: MIT lifecycle


R-CMD-check :registry status badge


codecov coverage status

CRAN (might be behind the R-Universe, but more stable)

CRAN_Status_Badge CRAN_Status_Badge_version_last_release

R-Universe (official distribution channel of the master branch of github)

:name status badge dmdScheme status badge

The R Package

The R package dmdScheme is the base package for all dmdScheme schemes. The metadata scheme used by this package (dmdScheme) in itself is just a template and of no real applicability. It needs to be adjusted to actual needs and uploaded to the site dmdScheme repository so that it can be used.

The definition of the dmdScheme can be found at the dmdScheme repository. The R package provides the functionality to work in R with the scheme, i.e. to enter, validate and export the metadata.


The easiest way is to install from CRAN


The CRAN release might be behind the R-Universe (which reflects the master branch), but would be the conservative choice.

The recommended way to install the version which is the last one on the master branch from the R-Universe where the stable released will always be available:

# Enable universe by uzh-peg
options(repos = c(
  uzhpeg = '',
  CRAN = ''))

# Install dmdScheme

If you are feling adventurous, want to live at the bleeding edge and can live with non-working features, you can install the dev branch. This branch is under development and not guranteed to be stable! Features and functionality can appear or be removed without prior notice:

## install the remotes package if not installed yet
if (require("remotes")) {

devtools::install_github("Exp-Micro-Ecol-Hub/dmdScheme", ref = "dev", build_opts = NULL)

Other branches are not generally recommended for installation unless you are developing dmdScheme or need certain features available in other brances!

Loading the package

When you load the package, the definition of the scheme is downloaded from the dmdScheme repository and installed in a temporary scheme library in a temporary directory for usage in this R session only. As this scheme library is stored in a temporary directory, it will be deleted when you quit your R session and must be re-downloaded each time you start a new session and load the package. To create a permanent package library you have to create a cache in the user directory. To do this, run

cache(createPermanent = TRUE)

and restart your R session. Now the definitions of the installed dmdSchemes will be installed in this user cache and be available permanently. For further info, see the documentation of the command cache() in the dmdScheme package.

Accompagnying documentation (vignettes)

Other Resources

Example scheme

For a workable example with data see the documentation of the emeScheme


Outdated Resources (Just for historical reasons)


Please see the github repository or the dmdScheme Homepage for details.