auth <- person(given = "Jane", family = "Smith",
email = "jane@example.com", role = c("cre", "aut"))
proj <- project(title = "example project",
people = c(person("Jane", "Smith", email = "jane@example.com",
role = "aut"),
person("Robert", "Jones", role = c("aut", "cre"))),
publisher = "example publisher",
type = "Dataset",
identifier = "10.5281/zenodo.1234567",
description = "A comprehensive explanation",
subject = c("keyword", "subject"),
license = "CC-BY-4.0")
# with a data.frame template
reg <- bf_registry(name = "currentWorkflow",
description = "the registry to my modelling pipeline",
template = bf_tbl,
author = auth,
project = proj)
# with a raster template
library(terra)
bf_rst <- rast(nrows = 3, ncols = 3, vals = 1:9)
reg <- bf_registry(name = "rasterWorkflow",
description = "raster-based bitfield",
template = bf_rst)
Run the code above in your browser using DataLab