read_rocrate: Wrapper for jsonlite::read_json

View source: R/utils-json.R

read_rocrateR Documentation

Wrapper for jsonlite::read_json

Description

Wrapper for jsonlite::read_json. Enforces that the object read is an RO-Crate.

Usage

read_rocrate(path, simplifyVector = FALSE, ...)

Arguments

path

file on disk

simplifyVector

simplifies nested lists into vectors and data frames. See fromJSON().

...

Arguments passed on to jsonlite::fromJSON

txt

a JSON string, URL or file

simplifyDataFrame

coerce JSON arrays containing only records (JSON objects) into a data frame

simplifyMatrix

coerce JSON arrays containing vectors of equal mode and dimension into matrix or array

flatten

automatically flatten() nested data frames into a single non-nested data frame

Value

Invisibly the RO-Crate stored in path.


rocrateR documentation built on April 9, 2026, 1:06 a.m.