https://github.com/cran/pracma
Raw File
Tip revision: c79a04b5074656b36e591191eb8137b70a349932 authored by Hans W. Borchers on 30 June 2014, 00:00:00 UTC
version 1.7.0
Tip revision: c79a04b
cd.Rd
\name{cd, pwd, what}
\alias{cd}
\alias{pwd}
\alias{what}
\title{
Directory Functions (Matlab style)
}
\description{
  Displays or changes working directory, or lists files therein.
}
\usage{
cd(dname)
pwd()

what(dname = getwd())
}
\arguments{
  \item{dname}{(relative or absolute) directory path.}
}
\details{
  \code{pwd()} displays the name of the current directory, and is the same
  as \code{cd()}. \code{cd(dname)} changes to directory \code{dname} and if
  successfull displays the directory name.

  \code{what()} lists all files in a directory.\cr
}
\value{
  Name of the current working directory.
}
\seealso{
  \code{\link{getwd}}, \code{\link{setwd}}, \code{\link{list.files}}
}
\examples{
# cd()
# pwd()
# what()
}
back to top