getstack: Returns the current directory stack that pushd and popd...

Description Usage Arguments Details Value Author(s) See Also Examples

Description

getstack goes into the separate environment where pushd and popd operate and returns the current stack of directories.

Usage

1

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

popd , pushd, setwd

Examples

1
2
3
4
5
6
## depends on your local directory structure and permissions
pushd('..')
pushd('.')
getstack()
popd()
getstack()


Search within the cgwtools package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.