set_wd: Set working directory to the path of *current* script

View source: R/utils-set_wd.R

set_wdR Documentation

Set working directory to the path of current script

Description

Set working directory to the path of current script

Usage

set_wd(dir = NULL)

Arguments

dir

NULL (default) or a character string specifying the working directory.

If NULL, set working directory to the path of the current R script.

See Also

setwd

Examples

## Not run: 
set_wd()  # set working directory to the path of the current R script

set_wd("D:/")  # "\" is not allowed, you should use "/"

set_wd("../")  # set working directory to the parent directory

## End(Not run)

jimbrig2011/jimstools documentation built on Sept. 14, 2022, 1:38 a.m.