Skip to content

Refactor/client helpers - #730

Draft
timcadman wants to merge 2 commits into
v7.0-devfrom
refactor/client-helpers
Draft

timcadman wants to merge 2 commits into
v7.0-devfrom
refactor/client-helpers

Conversation

@timcadman

@timcadman timcadman commented Nov 2, 2026 •

Copy link
Copy Markdown
Contributor

Note still draft - I need to finish this prior to review.

Aim of this PR is to refactor error message handling such that, where possible, helper functions handle errors (e.g. argument checks). This means we can then specify the wording in a small number of places and reuse across the package, rather than repeating in every function. This will increase consistency and also maintainability, as if we ever want to change the wording we only need to do it in one place.

This PR does the refactor, the next PR will update the error message handling to use CLI, which gives a more professional look

@timcadman
timcadman changed the base branch from v6.3.6-dev to v7.0-dev November 2, 2026 11:32
@github-actions

github-actions Bot commented Nov 2, 2026 •

Copy link
Copy Markdown
❌ 2 of 5 checks failed
CheckResult
Devtools checks✅ passed
Code quality❌ 2 new findings (package total: 1903)
Armadillo unit tests❌ [ FAIL 0 | WARN 0 | SKIP 21 | PASS 9276 ]
Opal unit tests✅ [ FAIL 0 | WARN 0 | SKIP 21 | PASS 11387 ]
Test coverageℹ️ no coverable lines changed (project: 54.9%)

Tested against dsBase versions:
Armadillo: 7.0.0.9000
Opal: 7.0.0.9000

Logs: Devtools checks · Code quality · Armadillo unit tests · Opal unit tests · Codecov

Comment thread R/ds.table.R
}

return(list(validity.message=validity.message,error.messages=error.messages))
failures <- paste0(names(error.messages), ": ", unlist(error.messages))
Comment thread R/utils.R
if(is.null(df)){
cli_abort("Please provide the name of a data.frame or matrix!")
.checkArgsSet <- function(..., call = parent.frame()) {
args <- list(...)

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants