pushd | R Documentation |
bash
command with same name
pushd
is based on the cygwin
bash
manpages' description of these commands.
pushd(path, dn=FALSE,rot=0)
path |
The directory to move into. |
dn |
Equivalent of the |
rot |
Equivalent of the |
Recommend reading man bash
for full details of the operations. This implementation should do nothing more than change the working directory (and store directory history in a file in the function's environment (not console environment) .dirhist
).
A status value, which is always 0
for success. A future upgrade may implement a trycatch
for conditions such as an inaccessible directory, but for now error messages will have to suffice.
Carl Witthoft carl@witthoft.com
popd
, 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.