validPath: Check for valid path

View source: R/helper_functions.R

validPathR Documentation

Check for valid path

Description

This helper function can be used by other functions to validate user 'corpora' parameter values passed to the query functions.

Usage

validPath(targetPath)

Arguments

targetPath

Vector of strings representing path to validate in pathTree.

Examples

validPath(c('childes', 'childes', 'Clinical'));

validPath(c('childes', 'childes', 'somethingThatDoesNotExist'));

TalkBank/TBDBr documentation built on Feb. 4, 2024, 2:25 p.m.