verifyHasMongoCmd {TxRegInfra}R Documentation

check for existence of 'mongo' command, for db.getCollectionNames etc.

Description

check for existence of 'mongo' command, for db.getCollectionNames etc.

Usage

verifyHasMongoCmd(cmd = "mongo")

Arguments

cmd

character(1) either 'mongo' or 'mongoimport'

Value

logical(1)

Note

we use mongoimport command to import tsv files; mongolite import 'method' not immediately useful for this

Examples

if (interactive()) verifyHasMongoCmd()

[Package TxRegInfra version 1.0.1 Index]