View source: R/list_manuscripts.R
remove_manuscript | R Documentation |
Removes a revise_manuscript from a given environment by name.
remove_manuscript(manuscript = NULL, envir = parent.frame(1))
manuscript |
A character vector of revise_manuscript names
that exist in |
envir |
The environment from which to remove the manuscript. |
Invisibly returns TRUE
if successful, and FALSE
otherwise.
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()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.