Skip to contents

Copies a _targets.R template to the given directory.

Usage

use_targets_template(path = ".", open = rlang::is_interactive())

Arguments

path

Path to the directory where _targets.R will be created. Defaults to the current directory.

open

Whether to open the file for editing.

Value

The path to the created _targets.R file, invisibly.

Examples

use_targets_template(path = fs::path_temp(""))
#>  Created /tmp/RtmpXdiw6f/_targets.R
#>  Edit the `config` section to set your paths.