this.path: Get Executing Script's Path
Determine the path of the executing script. Compatible with several popular GUIs: 'Rgui', 'RStudio', 'Positron', '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()'.
| Version: | 2.7.1 |
| Depends: | R (≥ 2.15) |
| Suggests: | utils,jsonlite,microbenchmark,rprojroot |
| Enhances: | compiler,box,knitr,plumber,shiny,targets,testthat |
| Published: | 2025-11-07 |
| DOI: | 10.32614/CRAN.package.this.path |
| Author: | Iris Simmons [aut, cre] |
| Maintainer: | Iris Simmons <ikwsimmo at gmail.com> |
| BugReports: | https://github.com/ArcadeAntics/this.path/issues |
| License: | MIT + fileLICENSE |
| URL: | https://github.com/ArcadeAntics/this.path |
| NeedsCompilation: | yes |
| Materials: | README,NEWS |
| CRAN checks: | this.path results |
Documentation:
Downloads:
Reverse dependencies:
Linking:
Please use the canonical formhttps://CRAN.R-project.org/package=this.pathto link to this page.