About Anaconda Help Download Anaconda
If you were automatically logged out you may need to refresh the page. You're trying to access a page that requires authentication. ×
If you were automatically logged out you may need to refresh the page. You're trying to access a page that requires authentication. ×

r / packages / r-this.path

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

Label Latest Version
main 2.2.0

© 2025 Anaconda, Inc. All Rights Reserved. (v4.0.9) Legal | Privacy Policy