Description Usage Arguments Value Functions References Examples
Wrapper functions to run Megadepth commands via
system2('megadepth', ...)
.
1 2 3 | megadepth_cmd(...)
megadepth_shell(input = ".", ...)
|
... |
Arguments to be passed to |
input |
A |
See base::system2()
for the types of output you can generate.
A character()
with the capture of the standard output stream
generated by Megadepth.
megadepth_cmd
: Run an arbitrary Megadepth command.
megadepth_shell
: Run an arbitrary Megadepth command.
megadepth_cmd()
is based on blogdown::hugo_cmd() which is available at
https://github.com/rstudio/blogdown/blob/master/R/hugo.R.
megadepth_shell()
is based on the shell_ls() example from cmdfun which is
available at https://snystrom.github.io/cmdfun/index.html.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | ## Install if necessary
install_megadepth()
## Find version
## megadepth_shell() provides an interface more familiar to R users
megadepth_shell(version = TRUE)
## megadepth_cmd() requires using directly the command line syntax for
## Megadepth
megadepth_cmd("--version", stdout = TRUE)
## Compare the help files:
# megadepth_shell() captures the standard output and returns a character()
# megadepth_cmd() shows the standard output on the console
megadepth_shell("--help")
megadepth_cmd("--help")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.