Learn R Programming

Orcs (version 1.2.3)

setwdOS: 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

Florian Detsch

See Also

Examples

Run this code
if (FALSE) {
# desired partition
setwdOS()

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

Run the code above in your browser using DataLab