this_file: Locating R Script File

View source: R/this_file.R

this_fileR Documentation

Locating R Script File

Description

This function locates the running script's location. The code is from steamer25's StackOverflow post here: https://stackoverflow.com/questions/1815606/rscript-determine-path-of-the-executing-script This enables both sourcing and Rscript-ing.

Usage

this_file()

sysilviakim/Kmisc documentation built on Jan. 28, 2023, 10:58 a.m.