Skip to contents

A single, lightweight lookup for the one field repo_check() actually needs from an OSF project's metadata: its licence name. Unlike .osf_node_metadata() (four API calls: node + citation + registrations + forks, built for full metadata archiving), this makes exactly one request with ?embed=license – confirmed live that this alone returns the same license name .osf_node_metadata() reads from the identical embed, without the other three calls.

Usage

.osf_license(osf_id)

Arguments

osf_id

the OSF node ID

Value

the licence name (character), or NA if none is set or the project could not be read

Details

OSF has no project-level DOI field in this response (DOI-minting is a separate, opt-in OSF feature most projects never use) – there is nothing to extract for a doi column here, unlike the dedicated data repositories (Dryad, Zenodo, Dataverse, Figshare, ReShare), which all return one directly.