Package: this.path 2.5.0
![](https://r-universe.dev/static/nobody.jpg)
Iris Simmons
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()'.
Authors:
this.path_2.5.0.tar.gz
this.path_2.5.0.tar.gz(r-4.5-noble)this.path_2.5.0.tar.gz(r-4.4-noble)
this.path_2.5.0.tgz(r-4.4-emscripten)this.path_2.5.0.tgz(r-4.3-emscripten)
this.path.pdf |this.path.html✨
this.path/json (API)
NEWS
# Installthis.path in R: |
install.packages('this.path',repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/arcadeantics/this.path/issues
Last updated 6 days agofrom:7647349d8c
Exports:asArgsbasename2check.dircheck.pathcheck.projdirname2env.direnv.hereenv.LINENOenv.pathenv.projextext<-FILEfileArgsfrom.shellgetinitwdhereiciinit.fileinitwdinside.sourceis.mainlast.conditionLINELINENOmake_fix_fileOS.typepath.functionspath.joinpath.splitpath.split.1path.unsplitprogArgsrel2env.dirrel2env.projrel2hererel2projrel2src.dirrel2src.projrel2sys.dirrel2sys.projrelpathremoveextreset.projreset.this.projset.env.pathset.gui.pathset.jupyter.pathset.src.pathset.sys.pathset.sys.path.functionset.sys.path.jupyterset.this.pathset.this.path.jupytershFILEsite.filesource.exprssplitextsrc.dirsrc.heresrc.LINENOsrc.pathsrc.projsys.dirsys.heresys.LINENOsys.pathsys.projSys.putenvsys.srcrefsys.whichesthis.dirthis.paththis.projthisPathNotExistsErrorthisPathNotFoundErrortry.env.pathtry.shFILEtry.src.pathtry.sys.pathtry.this.pathtryCatch2tryCatch3unset.sys.pathunset.this.pathwith_init.filewith_script_pathwith_site.filewith_sys.pathwithArgswrap.source
Dependencies: