setMetadata {mizer}R Documentation

Set metadata for a model

Description

[Experimental] Setting metadata is particularly important for sharing your model with others. All metadata fields are optional and you can also add other fields of your own choosing. If you set a value for a field that already existed, the old value will be overwritten.

Usage

setMetadata(params, title, description, authors, url, doi, ...)

getMetadata(params)

Arguments

params

The MizerParams object for the model

title

A string with the title for the model

description

A string with a description of the model. This could for example contain information about any publications using the model.

authors

An author entry or a list of author entries, where each author entry could either be just a name or could itself be a list with fields like name, orcid, possibly email.

url

A URL where more information about the model can be found. This could be a blog post on the mizer blog, for example.

doi

The digital object identifier for your model. To create a doi you can use online services like https://zenodo.org/ or https://figshare.com.

...

Additional metadata fields that you would like to add

Details

In addition to the metadata fields you can set by hand, there are four fields that are set automatically by mizer:

Value

setMetadata(): The MizerParams object with updated metadata

getMetadata(): A list with all metadata entries that have been set, including at least mizer_version, extensions, time_created and time_modified.


[Package mizer version 2.5.1 Index]