| getstack {cgwtools} | R Documentation | 
Returns the current directory stack that pushd and popd manipulate
Description
getstack  goes into the separate environment where pushd and 
popd operate and returns the current stack of directories.
Usage
getstack()
Arguments
none
Details
Allowing a function to modify an object in the GlobalEnvironment is frowned upon by CRAN (and most programmers), so to maintain a directory stack a separate environment is established by pushd. Since this environment is not visible at the console level,  getstack allows the user to check on the current status of the stack.
Value
The current directory stack is returned as a vector of strings.
Author(s)
Carl Witthoft carl@witthoft.com
See Also
Examples
## depends on your local directory structure and permissions
getwd()
getstack() #empty, probably
pushd('..')
getstack()
pushd('.')
getstack()
popd()
getstack()
popd()
getstack()
getwd() #back where we started
[Package cgwtools version 4.1 Index]