R/istrack.R

Defines functions istrack

Documented in istrack

# Check if a combination of arguments consists in a valid track
# Author : Sylvain Mareschal <maressyl@gmail.com>
# License : GPL3 http://www.gnu.org/licenses/gpl.html

istrack = function(...) {
	result <- try(.External("checktrack", PACKAGE="Rgb", ...), silent=TRUE)
	if(is(result, "try-error")) {
		output <- FALSE
		attr(output, "why") <- conditionMessage(attr(result, "condition"))
	} else {
		output <- TRUE
	}
	return(output);
}

Try the Rgb package in your browser

Any scripts or data that you put into this service are public.

Rgb documentation built on Aug. 18, 2023, 5:05 p.m.