Learn R Programming

blit (version 0.2.0)

exec: Invoke a System Command

Description

Invoke a System Command

Usage

exec(cmd, ...)

Value

A command object.

Arguments

cmd

Command to be invoked, as a character string.

...

<dynamic dots> Additional arguments passed to cmd command. Empty arguments are automatically trimmed. If a single argument, such as a file path, contains spaces, it must be quoted, for example using shQuote().

<code>command</code> collections

  • allele_counter()

  • cellranger()

  • conda()

  • fastq_pair()

  • gistic2()

  • kraken_tools()

  • kraken2()

  • perl()

  • pyscenic()

  • python()

  • samtools()

  • seqkit()

  • trust4()

See Also

  • cmd_wd()/cmd_envvar()/cmd_envpath()/cmd_conda()

  • cmd_on_start()/cmd_on_exit()

  • cmd_on_succeed()/cmd_on_fail()

  • cmd_parallel()

Examples

Run this code
cmd_run(exec("echo", "$PATH"))

Run the code above in your browser using DataLab