remove_manuscript {revise} | R 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 |
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()
[Package revise version 0.1.0 Index]