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

set_here

Add a marker file to a project


Description

Superseded lifecycle

Usage

set_here(path = ".", verbose = TRUE)

Arguments

path

[character(1)]
Directory where to create .here file, defaults to the current directory.

verbose

[logical(1)]
Verbose output, defaults to TRUE.

Details

set_here() creates an empty file named .here, by default in the current directory. When here encounters such a file, it uses the directory that contains this file as root. This is useful if none of the default criteria apply. You need to restart the R session so that here() picks up the newly created file.

Life cycle

set_here() should no longer be necessary if all scripts and reports in a project call i_am(), which is now the recommended workflow for declaring the project root.


here

A Simpler Way to Find Your Files

v1.0.1
MIT + file LICENSE
Authors
Kirill Müller [aut, cre] (<https://orcid.org/0000-0002-1416-3412>), Jennifer Bryan [ctb] (<https://orcid.org/0000-0002-6983-2759>)
Initial release
2020-12-13

We don't support your browser anymore

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