execshell: Pass command lines to a shell

View source: R/utils.R

execshellR Documentation

Pass command lines to a shell

Description

Cross-platform function to pass a command to the shell, using either base::system() or (Windows-only) base::shell(), depending on the operating system.

Usage

execshell(commandstring, intern = FALSE, path = ".", ...)

Arguments

commandstring

The system command to be invoked, as a string. Multiple commands can be combined in this single string, e.g. with a multiline string.

intern

a logical (not NA) which indicates whether to capture the output of the command as an R character vector.

path

The path from where the command string needs to be executed

...

Other arguments passed to base::system() or base::shell().

See Also

Other utils: ask_yes_no(), author2df(), bookdown_zenodo(), c_sort(), create_hexsticker(), menu_first(), orcid2person(), store_authors(), use_author(), validate_email(), validate_orcid(), yesno()


inbo/checklist documentation built on June 15, 2025, 12:54 p.m.