script.close | R Documentation |
This function is used to close the current R script in RStudio. Note that by
default the function closes the script without saving unless the argument
save
is set to TRUE
.
script.close(save = FALSE, check = TRUE)
save |
logical: if |
check |
logical: if |
The function documentClose()
in the package rstudioapi is used
to close the R script.
Takuya Yanagida takuya.yanagida@univie.ac.at
Ushey, K., Allaire, J., Wickham, H., & Ritchie, G. (2022). rstudioapi: Safely access the RStudio API. R package version 0.14. https://CRAN.R-project.org/package=rstudioapi
script.new
, script.open
, script.save
,
setsource
,
## Not run:
# Close current R script file
script.close()
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.