Learn R Programming

R.AlphA.Home (version 2.0.2)

ralpha_fold: Fold Code Sections in RStudio

Description

Automatically fold code sections in RStudio editor to improve code readability and navigation

Usage

ralpha_fold(get_time = getOption("fab_time", default = FALSE))

Value

Invisible NULL. The function is called for its side effect of folding code sections in the RStudio editor.

Arguments

get_time

Logical value indicating whether to track and display function execution time. Default is taken from option "fab_time" or FALSE if not set.

Examples

Run this code
if (FALSE) {
# Fold code sections in the current RStudio editor
ralpha_fold()

# Fold code sections and display timing information
ralpha_fold(get_time = TRUE)
}

Run the code above in your browser using DataLab