Deprecated: $wgMWOAuthSharedUserIDs=false is deprecated, set $wgMWOAuthSharedUserIDs=true, $wgMWOAuthSharedUserSource='local' instead [Called from MediaWiki\HookContainer\HookContainer::run in /var/www/html/w/includes/HookContainer/HookContainer.php at line 135] in /var/www/html/w/includes/Debug/MWDebug.php on line 372
scriptloc - MaRDI portal

scriptloc

From MaRDI portal
Software:5983015



CRANscriptlocMaRDI QIDQ5983015

Get the Location of the R Script that is Being Sourced/Executed

Naren Chandran Sakthivel

Last update: 17 August 2023

Copyright license: MIT license, File License

Software version identifier: 1.0.0

Provides functions to retrieve the location of R scripts loaded through the source() function or run from the command line using the Rscript command. This functionality is analogous to the Bash shell's ${BASH_SOURCE[0]}. Users can first set the project root's path relative to the script path and then all subsequent paths relative to the root. This system ensures that all paths lead to the same location regardless of where any script is executed/loaded from without resorting to the use of setwd() at the top of the scripts.





This page was built for software: scriptloc