Open the original code used to create a slimr_script in a new document. Requires RStudio.

slimr_open_original(slimr_script_name = NULL)

Arguments

slimr_script_name

Name of slimr_script to open in a new document as a string.

Value

The code as a string (invisibly)

Examples

test <- minimal_slimr_script()
if(rlang::is_installed("rstudioapi") && interactive()) {
    slimr_open_original("test")
}