Learn R Programming

this.path (version 1.4.0)

this.proj: Construct Path to File, Starting with the Project's Directory

Description

this.proj() behaves very similarly to here::here(), constructing a path to a file starting with your project's directory.

this.proj() supports sub-projects and multiple projects in use at once, and will choose which project directory is appropriate based on this.dir(). Additionally, it is independent of working directory, whereas here::here() relies on the working directory being set within the project's directory when the package is loaded. Arguably, this makes it better than here::here().

reset.this.proj() will reset the paths saved by this.proj(). This can be useful if you created a new project in your R session that you would like to be detected by this.proj() without the need to restart the R session.

Usage

this.proj(...)

reset.this.proj()

Value

A character vector of the arguments concatenated term-by-term, starting with the project directory.

Arguments

...

further arguments passed to path.join().

See Also

this.path::here()