use_test: Create or edit a test file

View source: R/use_example.R

use_testR Documentation

Create or edit a test file

Description

Create or edit a test file

Usage

use_test(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 a test file does not already exist, creates a test file. If open is TRUE, opens the test file.

See Also

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


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