Package: dataclass 1.0.0

dataclass: Easily Create Structured Lists or Data Frames with Input Validation

Easily define templates for lists and data frames that validate each element. Specify the expected type (i.e., character, numeric, etc), expected length, minimum and maximum values, allowable values, and more for each element in your data. Decide whether violations of these expectations should throw an error or a warning. This package is useful for validating data within R processes which pull from dynamic data sources such as databases and web APIs to provide an extra layer of validation around input and output data.

Authors:Chris Walker [aut, cre, cph]

dataclass_1.0.0.tar.gz
dataclass_1.0.0.zip(r-4.5)dataclass_1.0.0.zip(r-4.4)dataclass_1.0.0.zip(r-4.3)
dataclass_1.0.0.tgz(r-4.4-any)dataclass_1.0.0.tgz(r-4.3-any)
dataclass_1.0.0.tar.gz(r-4.5-noble)dataclass_1.0.0.tar.gz(r-4.4-noble)
dataclass_1.0.0.tgz(r-4.4-emscripten)dataclass_1.0.0.tgz(r-4.3-emscripten)
dataclass.pdf |dataclass.html
dataclass/json (API)

# Install 'dataclass' in R:
install.packages('dataclass', repos = c('https://walkerjameschris.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/walkerjameschris/dataclass/issues

On CRAN:

dataclassesvalidation

3.60 score 8 stars 1 scripts 257 downloads 10 exports 17 dependencies

Last updated 5 months agofrom:1c399799fb. Checks:7 OK. Indexed: yes.

TargetResultLatest binary
Doc / VignettesOKJan 22 2025
R-4.5-winOKJan 22 2025
R-4.5-linuxOKJan 22 2025
R-4.4-winOKJan 22 2025
R-4.4-macOKJan 22 2025
R-4.3-winOKJan 22 2025
R-4.3-macOKJan 22 2025

Exports:any_objatm_vecchr_vecdata_validatordataclassdf_likedte_vecenforce_typeslgl_vecnum_vec

Dependencies:clidplyrfansigenericsgluelifecyclemagrittrpillarpkgconfigpurrrR6rlangtibbletidyselectutf8vctrswithr