import_cli: Import Command Line Interface tool

View source: R/import_cli.R

import_cliR Documentation

Import Command Line Interface tool

Description

Import a Command Line Interface (CLI) tool into R as a function.

Usage

import_cli(path, fix_names = TRUE, conda_env = NULL, verbose = TRUE)

Arguments

path

Path to CLI tool executable file (preferred), or simply the tool name.

fix_names

Map argument names to R-friendly versions.

conda_env

Conda environments to search in. If NULL (default), will search all conda environments.

verbose

Print messages.

Source

Stack Overflow

Function factories

Dynamic roxygen notes

match.call

Examples

mycurl <- import_cli(path="curl")
mycurl(h = TRUE)
mycurl(url= file.path("http://hgdownload.soe.ucsc.edu/goldenPath",
                           "hg38/multiz100way/md5sum.txt"),
       o="~/Downloads/tmp.txt")

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