R/helpers.R

Defines functions .check_mod

.check_mod <- function(mod) {
  if (!inherits(mod, "pt2mod"))
    stop("object does not enherit class 'pt2mod'")
  if (typeof(mod) != "externalptr")
    stop("object is not of type 'externalptr'")
}

Try the ProTrackR2 package in your browser

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

ProTrackR2 documentation built on April 3, 2025, 9:21 p.m.