setwd2rt: Go to an saved root directory.

Description Usage Arguments Details

View source: R/setwd2rt.R

Description

Basic usage: use setwd2rt(add='rootdir') to set the custom root; use setwd2rt() to go to the custom root; the root is saved as an option (see below), so will be preserved after an e.g. remove(list=ls()). Advanced usage: use setwd2rt(name='rootname',add='rootdir') to add the key-value pair ('rootname','rootdir') to the list of all rootdirs stored; use setwd2rt(name='rootname') to go to 'rootdir'; use setwd2rt(list=TRUE) to list all such key-value pairs.

Usage

1
setwd2rt(name = "default", add = NULL, list = FALSE)

Arguments

name

Name of the root to go to, or to add. defaults to 'default'.

add

directory to add

list

if TRUE, directory is unchanged; a listing of all added roots is printed.

Details

Best way to use this function


rdisalv2/dismisc documentation built on March 19, 2018, 9:12 a.m.