View source: R/compile_and_open.R
compile_and_open | R Documentation |
Saves everything opened in a current project, renders (compiles) chosen
.Rmd
document(s), and opens the resulting file if everything went OK.
compile_and_open(
input,
output_dir = "reports-output",
open_on_success = TRUE,
...
)
input |
path to source |
output_dir |
output directory, default to "reports-output" |
open_on_success |
if compilation went successul, open the result, default to TRUE |
... |
Arguments passed on to
|
No return value. Called for side effects.
## Not run:
# for which REDIZOs should the reports be compiled?
red_izos <- c("600000001", "600000002", "600000003")
purrr::map(
red_izos,
~ compile_and_open("05_ucitele-reditele_ms.Rmd",
open_on_success = FALSE,
output_dir = here("reports-output", "ucitele-reditele-ms"),
output_file = paste0("02_ucitele-reditele-ms_", .x, ".docx"),
params = list(redizo = .x)
)
)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.