popd | R Documentation |
bash
command with same name
popd
is based on the cygwin
bash
manpages' description of these commands.
popd(dn=FALSE, pull=0)
dn |
Determines whether a stack "pop" is to be performed. This is the equivalent of the first argument in |
pull |
Equivalent of the latter |
Recommend reading man bash
for full details of the operations. This implementation will not change the working directory if dn
is TRUE
The directory history is stored in a file in the function's environment (not console environment).dirhist
, typically first created with pushd
.
A status value: 0
for success or 1
if there is no stack file (.dirhist
). Future upgrades may include other codes for other failure mechanisms, but for now error messages will have to suffice.
Carl Witthoft carl@witthoft.com
pushd
, setwd
## depends on your local directory structure and permissions
getwd()
pushd("~/..")
getwd()
popd()
getwd()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.