checkSource: Checks validity of a 'Source'.

View source: R/classes.R

checkSourceR Documentation

Checks validity of a Source.

Description

Called internally as the validity slot of the Source. It checks that the essential slots are filled with sensible values ie a dir that exists on the file system; the format type is specified and an id that is a non-empty character string. It doesn't check that this is alphanumeric, this would be a useful addition.

Usage

checkSource(object)

Arguments

object

The Source object to check for validity.

Value

Empty string if the essential slots are fine, a string containing an error message if not.

Author(s)

Matthew Forrest matthew.forrest@senckenberg.de


MagicForrest/DGVMTools documentation built on Aug. 23, 2024, 8:05 a.m.