setwdOS: Set working directory dependent on current OS

Description Usage Arguments Author(s) See Also Examples

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

1
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

setwd, switch

Examples

1
2
3
4
5
6
7
8
## Not run: 
# desired partition
setwdOS()

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

## End(Not run)

Orcs documentation built on May 2, 2019, 2:37 a.m.