use_r: Create or edit an R file

View source: R/use_example.R

use_rR Documentation

Create or edit an R file

Description

Create or edit an R file

Usage

use_r(name = NULL, open = rlang::is_interactive())

Arguments

name

Either a name without extension, or NULL to create a test file file based on currently open file in the script editor.

open

Whether to open the file for interactive editing.

Value

If an R file does not already exist, creates an R file. If open is TRUE, opens the R file.

See Also

usethis::use_r(), which this function is modified from


rossellhayes/arhfn documentation built on Aug. 7, 2023, 8:03 a.m.