setwdOS: Set Working Directory Dependent on Current OS

View source: R/setwdOS.R

setwdOSR Documentation

Set Working Directory Dependent on Current OS

Description

Similar to setwd(), this function sets the working directory to a user-defined path. Rather than supplying a single 'dir' argument, however, both an OS-sensitive path to the desired hard disk partition and, optionally, an extension of this file path are required.

Usage

setwdOS(lin = "/media/permanent/", win = "C:/", ext = NULL)

Arguments

lin, win

Absolute file paths to the Linux and Windows partition as character.

ext

Optional file path extension as character that will be added to 'lin' or 'win' after automatic OS determination.

Author(s)

Florian Detsch

See Also

switch().

Examples

## Not run: 
# desired partition
setwdOS()

# including file path extension
setwdOS(ext = "kilimanjaro/nubiscope")

## End(Not run)


fdetsch/Orcs documentation built on Jan. 9, 2023, 6:14 a.m.