The R Project SVN R

Rev

Rev 59039 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 59039 Rev 61433
Line 27... Line 27...
27
  example if symbolic links have been traversed).
27
  example if symbolic links have been traversed).
28
}
28
}
29
 
29
 
30
\seealso{
30
\seealso{
31
  \code{\link{list.files}} for the \emph{contents} of a directory.
31
  \code{\link{list.files}} for the \emph{contents} of a directory.
32
  
32
 
33
  \code{\link{normalizePath}} for a \sQuote{canonical} path name.
33
  \code{\link{normalizePath}} for a \sQuote{canonical} path name.
34
}
34
}
35
 
35
 
36
\value{
36
\value{
37
  \code{getwd} returns a character string or \code{NULL} if the working
37
  \code{getwd} returns a character string or \code{NULL} if the working
38
  directory is not available.
38
  directory is not available.
39
  On Windows the path returned will use \code{/} as the path separator
39
  On Windows the path returned will use \code{/} as the path separator
40
  and be encoded in UTF-8.  The path will not have a trailing \code{/}
40
  and be encoded in UTF-8.  The path will not have a trailing \code{/}
41
  unless it is the root directory (of a drive or share on Windows).
41
  unless it is the root directory (of a drive or share on Windows).
42
  
42
 
43
  \code{setwd} returns the current directory before the change,
43
  \code{setwd} returns the current directory before the change,
44
  invisibly and with the same conventions as \code{getwd}.  It will give
44
  invisibly and with the same conventions as \code{getwd}.  It will give
45
  an error if it does not succeed (including if it is not implemented).
45
  an error if it does not succeed (including if it is not implemented).
46
}
46
}
47
 
47