use_directory: Use a directory

Description Usage Arguments Examples

View source: R/directory.R

Description

use_directory() creates a directory (if it does not already exist) in the project's top-level directory. This function powers many of the other use_ functions such as use_data() and use_vignette().

Usage

1
use_directory(path, ignore = FALSE)

Arguments

path

Path of the directory to create, relative to the project.

ignore

Should the newly created file be added to .Rbuildignore?

Examples

1
2
3
4
## Not run: 
use_directory("inst")

## End(Not run)

usethis documentation built on Feb. 10, 2021, 5:08 p.m.