Determine the path of the executing script.

Compatible with several popular GUIs:

Compatible with several functions and packages:

Details

The most important functions from package:@R_PACKAGE_NAME@ are this.path(), this.dir(), here(), and this.proj():

New additions include:

package:@R_PACKAGE_NAME@ also provides functions for constructing and manipulating file paths:

Note

This package started from a stack overflow posting:

https://stackoverflow.com/questions/1815606/determine-path-of-the-executing-script/64129649#64129649

If you like this package, please consider upvoting my answer so that more people will see it! If you have an issue with this package, please use bug.report(package = "@R_PACKAGE_NAME@") to report your issue.

Author

@R_PACKAGE_AUTHOR@

Maintainer: @R_PACKAGE_MAINTAINER@