cmtkreg: Create and test cmtkreg objects that specify path to a CMTK...

View source: R/cmtkreg.R

cmtkregR Documentation

Create and test cmtkreg objects that specify path to a CMTK registration

Description

cmtkreg creates an object of class cmtkreg that describes one (or more) CMTK registrations. This is simply a character vector that also has class cmtkreg.

as.cmtkreg converts objects to class cmtkreg, minimally just by adding an approriate class attribute.

is.cmtkreg checks if an object is a cmtk registration either by checking class (default), or inspecting file.

Usage

cmtkreg(x, returnDir = TRUE)

as.cmtkreg(x, ...)

## S3 method for class 'matrix'
as.cmtkreg(x, ...)

## S3 method for class 'reglist'
as.cmtkreg(x, ...)

## Default S3 method:
as.cmtkreg(x, ...)

is.cmtkreg(x, filecheck = c("none", "exists", "magic"))

Arguments

x

Path to a cmtk registration (either plain character vector or cmtkreg object)

returnDir

Whether to return the registration directory (default) or the actual file containing the registration

...

Additional arguments passed to methods. Currently ignored.

filecheck

Whether to check object class only (default: 'none') or find amd check if registration file exists or check magic value in first line of file.


nat documentation built on May 29, 2024, 10:36 a.m.