pipeshell | R Documentation |
pipeshell()
and %P%
send x
to command
via shell.
less()
print x
in getOption('pager')
. The operation is in-memory and
efficient than page(x, method='print')
that involves a temporary file.
egrep()
and %G%
are shorthand for x %P% "grep -E {expr}"
.
redirect()
evaluates expr
while sink(file)
is in operation.
pipeshell(x, command, ...)
x %P% command
less(x, ...)
egrep(x, expr, ...)
x %G% expr
redirect(expr, file = nullfile())
x |
an object to print |
command |
to which the text is sent; string or expression. |
... |
further arguments passed to |
expr |
arguments to |
file |
a writable connection or a character string naming the
file to write to, or |
iris |> less()
iris |> egrep(vir)
iris |> egrep("vir")
letters |> pipeshell(cat)
iris %P% wc
iris %P% "wc -l"
iris %P% `grep seto | less`
vir = "seto"
iris %G% vir
iris %G% !!vir
iris %G% `-v seto | less`
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.