cmd_print: Neatly print commands

View source: R/cmd_print.R

cmd_printR Documentation

Neatly print commands

Description

Neatly print commands sent to the command line.

Usage

cmd_print(
  cmd,
  raw = FALSE,
  basepath = TRUE,
  prefix = "...",
  wrap = "\n   ",
  verbose = TRUE
)

Arguments

cmd

Command string or list of strings.

raw

Print the raw cmd text.

basepath

For each component of cmd that is a path, shorten the path to just the basename.

prefix

When basepath=TRUE, append a prefix to the path.

wrap

If wrap is not NULL, use this to separate arguments with newlines.

verbose

Print messages.

Examples

cmd_print("fastqc -d ./fastqc_temp -o ${workdir}
          /fastqFileQC/${sample_name} -f fastq")

RajLabMSSM/echoconda documentation built on May 21, 2023, 10:19 a.m.