Learn R Programming

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

this.path (version 0.5.1)

Get Executing Script's Path, from 'RStudio', 'Rgui', 'Rscript' (Shells Including Windows Command-Line / / Unix Terminal), and 'source'

Description

Determine the full path of the executing script. Works when running a line or selection from a script in 'RStudio' and 'Rgui', when using 'source', 'sys.source', 'debugSource' in 'RStudio', and 'testthat::source_file', and when running R from a shell.

Copy Link

Version

Install

install.packages('this.path')

Monthly Downloads

1,746

Version

0.5.1

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Andrew Simmons

Last Published

March 12th, 2022

Functions in this.path (0.5.1)

R.from.shell

Using R From a Shell
check.path

Check this.path() is Functioning Correctly
this.path-package

this.path
this.path2

Determine Executing Script's Filename
as.relative.path

Make a Path Relative to Another Path
here

Construct Path to File, Beginning with this.dir()
this.path

Determine Executing Script's Filename
this.path-defunct

Defunct Functions in Package this.path