cd: Directory Functions (Matlab style)

Description Usage Arguments Details Value See Also Examples

View source: R/clear.R

Description

Displays or changes working directory, or lists files therein.

Usage

1
2
3
4
cd(dname)
pwd()

what(dname = getwd())

Arguments

dname

(relative or absolute) directory path.

Details

pwd() displays the name of the current directory, and is the same as cd(). cd(dname) changes to directory dname and if successfull displays the directory name.

what() lists all files in a directory.

Value

Name of the current working directory.

See Also

getwd, setwd, list.files

Examples

1
2
3
# cd()
# pwd()
# what()

pracma documentation built on Nov. 22, 2017, 1:08 a.m.