Skip to contents

Zenodo wants an SPDX-style identifier (e.g. "cc-by-4.0"), while the OSF stores a display name (e.g. "CC-By Attribution 4.0 International"). Only the licenses the OSF actually offers are mapped; anything else returns NA so the caller can fall back to its license argument rather than send Zenodo a value it will reject.

Usage

.zenodo_license_id(osf_license)

Arguments

osf_license

the OSF license name

Value

an SPDX-style Zenodo license id, or NA_character_