script.save | R Documentation |
This function is used to save the current or all R scripts in RStudio.
script.save(all = FALSE, check = TRUE)
all |
logical: if |
check |
logical: if |
The function documentSave()
or documentSaveAll()
in the package
rstudioapi is used to save the R script. Note that R scripts need to
have a file location before this function can be used.
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.close
, script.new
, script.open
,
setsource
## Not run:
# Save current R script
script.save()
# Save all R scripts
script.save(all = TRUE)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.