Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

use_directory

Use a directory


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

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

## Not run: 
use_directory("inst")

## End(Not run)

usethis

Automate Package and Project Setup

v2.0.1
MIT + file LICENSE
Authors
Hadley Wickham [aut] (<https://orcid.org/0000-0003-4757-117X>), Jennifer Bryan [aut, cre] (<https://orcid.org/0000-0002-6983-2759>), RStudio [cph, fnd]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.