Learn R Programming

⚠️There's a newer version (2.5.0) of this package.Take me there.

this.path (version 0.4.4)

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

Description

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.

Copy Link

Version

Install

install.packages('this.path')

Monthly Downloads

2,388

Version

0.4.4

License

MIT + file LICENSE

Maintainer

Last Published

March 21st, 2021

Functions in this.path (0.4.4)

Running.R.from.the.command-line

Running R from the Windows Command-line / / Unix Terminal
this.path

Determine Executing Script's Filename
this.path-package

this.path