Learn R Programming

this.path (version 0.5.1)

this.path-package: this.path

Description

this.path

Arguments

Details

The three most important functions from this package are this.path, this.dir, and here.

this.path() returns the normalized path of the executing script.

this.dir() is a shorter way of writing dirname(this.path()), returning the normalized path of the directory in which the executing script is located.

here() constructs file paths relative to the executing script's directory.

See Also

The main functions from this.path: this.path, this.dir, here

this.path and this.dir variants: this.path2, this.dir2, this.dir3

Check this.path() is functioning correctly: check.path, check.dir

source, sys.source, debugSource, testthat::source_file

R.from.shell