Package: dataexcept 0.4.2
dataexcept: Structured, Classed Failures that Cross Language Boundaries
Classed error conditions for data and modelling workflows that carry structured fields and machine-readable recovery metadata (whether a failure is transient or permanent, and whether a retry can succeed), and that serialise to the language-neutral failure envelope published by the 'DataExcept' 'Python' package, so failures written by 'R' and 'Python' code share one format. Envelopes from either language can be read back into 'R' conditions. Credentials in URLs are redacted before they reach a condition or an envelope. A companion layer gives classes to the warnings base 'R' and 'stats' signal with only a message, recognising them through the translated message catalogue so the match holds in any session language.
Authors:
dataexcept_0.4.2.tar.gz
dataexcept_0.4.2.zip(r-4.7-any)dataexcept_0.4.2.zip(r-4.6-any)
dataexcept_0.4.2.tar.gz(r-4.7-any)dataexcept_0.4.2.tar.gz(r-4.6-any)
dataexcept_0.4.2.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
dataexcept/json (API)
| # Install 'dataexcept' in R: |
| install.packages('dataexcept', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/diogoribeiro7/r-dataexcept/issues
Last updated from:fa2e3974c3. Checks:6 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel | OK | 127 | ||
| source / vignettes | OK | 187 | ||
| linux-release | OK | 116 | ||
| windows-devel | OK | 95 | ||
| windows-release | OK | 92 | ||
| wasm-release | OK | 97 |
Exports:api_errorauthentication_errorauthorization_errorbatch_processing_errorclassed_warning_rulesclassify_warningcollect_errorscondition_failurecondition_groupcondition_to_envelopecondition_to_eventcondition_to_event_jsoncondition_to_jsoncondition_to_otel_attributescondition_to_pinocondition_to_pino_jsoncondition_typeconfiguration_errorconnection_timeout_errorconvergence_errorcross_validation_errordata_drift_errordata_format_errordata_imbalance_errordata_leakage_errordata_loading_errordata_transformation_errordatabase_connection_errordataexcept_classesdtype_mismatch_errorenvelope_schemaenvelope_schema_idenvelope_schema_versionenvelope_to_conditionenvelope_to_pinoetl_job_errorexternal_service_errorfailure_metadatafile_read_errorfile_write_errorgroup_membershost_unreachable_errorhyperparameter_erroris_envelopeis_retryablemerge_key_errormissing_column_errormissing_data_errormodel_evaluation_errormodel_serialization_errormodel_training_errornew_dataexcept_erroroperation_contextoperation_context_from_oteloperation_index_fieldsoperation_timeout_erroroutlier_detection_erroroverfitting_errorpino_schemaprediction_errorquery_execution_errorrecord_otel_exceptionredact_urlredact_urls_in_textresource_limit_errorresource_not_found_errorretry_limit_exceeded_errorschema_mismatch_errorservice_authentication_errorservice_authorization_errorservice_timeout_errorstorage_errortraining_timeout_errortransaction_errorunderfitting_errorvalidate_envelopevalidation_errorwith_classed_warningswith_failure_metadatawrap_errors
Dependencies:jsonlite
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Read the failure metadata of a condition | condition_failure is_retryable |
| Report several failures as one | collect_errors condition_group group_members |
| Write a condition as a DataExcept envelope | condition_to_envelope condition_to_json condition_type |
| A failure event for logs and observability tools | condition_to_event condition_to_event_json |
| OpenTelemetry attributes for a condition | condition_to_otel_attributes |
| Write a condition in the shape Pino logs errors | condition_to_pino condition_to_pino_json envelope_to_pino |
| Data engineering failures | batch_processing_error data_engineering_errors data_transformation_error etl_job_error |
| Data frame failures | data_frame_errors dtype_mismatch_error merge_key_error missing_column_error |
| Data quality failures | data_drift_error data_format_error data_imbalance_error data_leakage_error data_quality_errors outlier_detection_error schema_mismatch_error |
| The dataexcept condition classes | dataexcept_classes |
| The envelope JSON Schema | envelope_schema envelope_schema_id envelope_schema_version |
| Read a DataExcept envelope back into an R condition | envelope_to_condition |
| Describe whether a failure can be recovered from | failure_metadata with_failure_metadata |
| File failures | file_errors file_read_error file_write_error |
| Job failures | authentication_error authorization_error configuration_error job_errors operation_timeout_error resource_not_found_error |
| Model evaluation and training failures | cross_validation_error hyperparameter_error model_evaluation_error model_quality_errors model_serialization_error overfitting_error resource_limit_error training_timeout_error underfitting_error |
| Data and modelling failures | convergence_error data_loading_error missing_data_error modelling_errors model_training_error prediction_error |
| Create a dataexcept error | new_dataexcept_error |
| Describe where an operation is running | operation_context operation_index_fields |
| Correlate an operation context with the active OpenTelemetry span | operation_context_from_otel |
| The Pino profile JSON Schema | pino_schema |
| Pipeline and external service failures | external_service_error pipeline_errors retry_limit_exceeded_error service_authentication_error service_authorization_error service_timeout_error storage_error |
| Record a condition on an OpenTelemetry span | record_otel_exception |
| Remove credentials from URLs | redact_url redact_urls_in_text |
| Database, network and service failures | api_error connection_timeout_error database_connection_error host_unreachable_error query_execution_error service_errors transaction_error |
| Check that a payload is a valid envelope | is_envelope validate_envelope |
| Validation failures | validation_error |
| Give base R's text-only warnings a class | classed_warning_rules classify_warning with_classed_warnings |
| Turn errors from an expression into a dataexcept error | wrap_errors |
