Get Executing Script's Path, from 'RStudio', 'RGui', 'Rterm' and 'Rscript' (Command-Line / / Terminal), and When Using 'source'

Determine the full path of the executing script. Works when running a line or selection from an open R script in 'RStudio' and 'RGui', when using 'source' and 'sys.source' and 'debugSource' ('RStudio' exclusive) and 'testthat::source_file', and when running R from the Windows command-line / / Unix terminal.


News

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("this.path")

0.4.4 by Andrew Simmons, 8 months ago


Browse source code at https://github.com/cran/this.path


Authors: Andrew Simmons


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports utils

Enhances testthat


Imported by logr.

Depended on by ptspotter.


See at CRAN