remove_manuscript: Remove Manuscript from Environment

View source: R/list_manuscripts.R

remove_manuscriptR Documentation

Remove Manuscript from Environment

Description

Removes a revise_manuscript from a given environment by name.

Usage

remove_manuscript(manuscript = NULL, envir = parent.frame(1))

Arguments

manuscript

A character vector of revise_manuscript names that exist in envir.

envir

The environment from which to remove the manuscript.

Value

Invisibly returns TRUE if successful, and FALSE otherwise.

Examples

temp_file <- tempfile(fileext = ".Rmd")
write("`r 1 + 1", file = temp_file)
read_manuscript(temp_file)
result <- remove_manuscript(list_manuscripts()[1])
# See that remove_manuscript() silently returns TRUE
print(result)
# See that there are no more manuscripts in envir
list_manuscripts()


revise documentation built on April 3, 2025, 11:47 p.m.