this.path: Get Executing Script's Path

Determine the path of the executing script. Compatible with a few popular GUIs: 'Rgui', 'RStudio', 'VSCode', 'Jupyter', 'Emacs', and 'Rscript' (shell). Compatible with several functions and packages: 'source()', 'sys.source()', 'debugSource()' in 'RStudio', 'compiler::loadcmp()', 'utils::Sweave()', 'box::use()', 'knitr::knit()', 'plumber::plumb()', 'shiny::runApp()', 'package:targets', and 'testthat::source_file()'.

Package details

AuthorIris Simmons
MaintainerIris Simmons <ikwsimmo@gmail.com>
LicenseMIT + file LICENSE
Version2.5.0
URL https://github.com/ArcadeAntics/this.path
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("this.path")

Try the this.path package in your browser

Any scripts or data that you put into this service are public.

this.path documentation built on June 30, 2024, 1:07 a.m.