Learn R Programming

this.path (version 2.5.0)

getinitwd: Get Initial Working Directory

Description

getinitwd() returns an absolute filepath representing the working directory at the time of loading this package.

Usage

getinitwd()
initwd

Arguments

Value

character string, or NULL if the initial working directory is not available.

Examples

Run this code
cat("\ninitial working directory:\n"); getinitwd()
cat("\ncurrent working directory:\n"); getwd()

Run the code above in your browser using DataLab