R/prep_description.R

Defines functions description

#' @include lists.R prep_utils.R
#' @importFrom desc description

PREPS$description <- function(state, path = state$path, quiet) {
  run_prep_step(state, "description", function(path) {
    desc <- description$new(file.path(path, "DESCRIPTION"))
    if (!desc$has_fields("Encoding")) {
      desc$set("Encoding", "UTF-8")
    }
    desc
  }, path = path, silent = quiet)
}

Try the goodpractice package in your browser

Any scripts or data that you put into this service are public.

goodpractice documentation built on June 5, 2026, 5:06 p.m.