Learn R Programming

pkglite (version 0.2.3)

remove_content: Remove content lines from a pkglite file

Description

Remove content lines from a pkglite file

Usage

remove_content(input, x, quiet = FALSE)

Value

The input file path.

Arguments

input

Path to the text file.

x

A character vector. Exactly matched lines in the file content will be removed.

quiet

Suppress printing of progress?

Specification

The contents of this section are shown in PDF user manual only.

Examples

Run this code
pkg <- system.file("examples/pkg1", package = "pkglite")
txt <- tempfile(fileext = ".txt")

pkg %>%
  collate(file_default()) %>%
  pack(output = txt, quiet = TRUE) %>%
  remove_content(c("## New Features", "## Improvements"), quiet = TRUE)

Run the code above in your browser using DataLab