root: Get Root Directory of Current Source File

View source: R/root.R

rootR Documentation

Get Root Directory of Current Source File

Description

Returns the directory path where the current source code file is located.

It is especially useful when the same source code is used by multiple users, each using his own environment, with different file paths.

the aim is to avoid writing full paths in raw text inside source codes.

Usage

root()

Value

A character string representing the absolute path of the directory containing the current source file.


R.AlphA.Home documentation built on April 3, 2025, 5:53 p.m.