validate: Validation of LitteR File Formats

View source: R/io.R

validateR Documentation

Validation of LitteR File Formats

Description

Generic function for validation of file formats.

Usage

validate(x, ...)

## S3 method for class 'litter'
validate(x, type_names, logger = create_logger(level = "INFO"), ...)

## S3 method for class 'litter_types'
validate(x, logger = create_logger(level = "INFO"), ...)

## S3 method for class 'settings'
validate(x, logger = create_logger(level = "INFO"), ...)

Arguments

x

object to validate

...

further arguments passed to or from other methods.

type_names

character vector of permissible types

logger

optional logger object (see create_logger)

Value

validated object of class wide

validated object of class litter_types

validated settings (list)

Methods (by class)

  • validate(litter): validate litter data.

  • validate(litter_types): validate litter_types file

  • validate(settings): validate settings file


litteR documentation built on Aug. 27, 2022, 1:05 a.m.