Skip to contents

This function closes all view tabs in RStudio. It starts from the current document and moves to the next tab until it reaches the starting document again.

Usage

close_view()

Value

None

Details

Note that this function will prompt you to save any unsaved files. If you choose not to save, these files will be closed without saving.

Note

This function requires the rstudioapi package, which is not automatically included in R. You need to install it manually if you haven't done so.