run_cmd: run_cmd

Description Usage Arguments Value Examples

View source: R/tools.R

Description

Execute a command in a way that is consistent with both Windows and Linux platforms

Usage

1
2
3
4
5
6
7
run_cmd(
  cmd,
  wait = TRUE,
  echo = FALSE,
  ignore.stdout = FALSE,
  ignore.stderr = FALSE
)

Arguments

cmd

Command to execute

wait

Wait command to finish (default TRUE)

echo

Print command in console (default FALSE)

ignore.stdout, ignore.stderr

a logical (not NA) indicating whether messages written to ‘stdout’ or ‘stderr’ should be ignored.

Value

a value returned from 'system' or 'shell'

Examples

1
run_cmd("ls")

pmoracho/loudness documentation built on July 16, 2021, 2:04 p.m.