Learn R Programming

Kmisc (version 0.2.0)

kSetwd: Set Working Directory

Description

A small convenience function that pastes together all arguments supplied, then submits those to setwd. If called with no arguments, it resets the directory to the home directory.

Usage

kSetwd(...)

Arguments

...
the set of strings to paste together

Examples

Run this code
x <- "my_favourite_dir"
#setwd( "C:/", x, "/", "really_awesome_stuff" )
## calls setwd( paste( "C:/", x, "really_awesome_stuff", collapse="" ) )

Run the code above in your browser using DataLab