script.save: Save R Script in RStudio

View source: R/script.save.R

script.saveR Documentation

Save R Script in RStudio

Description

This function is used to save the current or all R scripts in RStudio.

Usage

script.save(all = FALSE, check = TRUE)

Arguments

all

logical: if TRUE, all scripts opened in RStudio are saved.

check

logical: if TRUE, argument specification is checked.

Details

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.

Author(s)

Takuya Yanagida takuya.yanagida@univie.ac.at

References

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

See Also

script.close, script.new, script.open, setsource

Examples

## Not run: 

# Save current R script
script.save()

# Save all R scripts
script.save(all = TRUE)

## End(Not run)

misty documentation built on Nov. 15, 2023, 1:06 a.m.

Related to script.save in misty...