Skip to contents

This function recreate a `.tar.gz` R package file after modifying its `DESCRIPTION` file by appending Config/build/clean-inst-doc: false parameter.

Usage

modify_description_file(tar_file)

Arguments

tar_file

A string representing the path to the `.tar.gz` file that contains the R package.

Value

A string containing the path to the newly created modified `.tar.gz` file.

Examples

if (FALSE) { # \dontrun{
  modified_tar <- modify_description_file("path/to/mypackage.tar.gz")
  print(modified_tar)
  # Unpack the tar.gz file
  contents <- risk.assessr::unpack_tarball(modified_tar)
  description_path <- file.path(contents, "DESCRIPTION")
  description_content <- readLines(description_path)
  cat(description_content, sep = "\n")
} # }