powered by
create a codemeta list object in R for further manipulation. Similar to write_codemeta, but returns an R list object rather than writing directly to a file. See examples.
write_codemeta
create_codemeta(pkg = ".", root = ".", id = NULL, use_filesize = TRUE, force_update = getOption("codemeta_force_update", TRUE), verbose = TRUE, ...)
package path to package root, or package name, or description file (character), or a codemeta object (list)
if pkg is a codemeta object, optionally give the path to package root. Default guess is current dir.
identifier for the package, e.g. a DOI (or other resolvable URL)
whether to try adding a filesize by using pkgbuild::build().
pkgbuild::build()
Update guessed fields even if they are defined in an existing codemeta.json file
Whether to print messages indicating opinions e.g. when DESCRIPTION has no URL. See give_opinions.
give_opinions
additional arguments to write_json
write_json
a codemeta list object
# NOT RUN { cm <- create_codemeta("jsonlite") cm$keywords <- list("metadata", "ropensci") # }
Run the code above in your browser using DataLab