set_here(path = ".", verbose = TRUE)
path |
|
---|---|
verbose |
|
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.
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.