script.close: Close R Script in RStudio

View source: R/script.close.R

script.closeR Documentation

Close R Script in RStudio

Description

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.

Usage

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

Arguments

save

logical: if TRUE, the script is saved before closing.

check

logical: if TRUE, argument specification is checked.

Details

The function documentClose() in the package rstudioapi is used to close the R script.

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.new, script.open, script.save, setsource,

Examples

## Not run: 

# Close current R script file
script.close()

## End(Not run)

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

Related to script.close in misty...