Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

assertive deprecated from cran #83

Merged
merged 1 commit into from
Feb 22, 2024
Merged

Conversation

krpaulson
Copy link
Collaborator

No description provided.

Copy link
Member

@spencerpease spencerpease left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Strange that assertive is being removed from CRAN but assertive.base is still around. Anyways, thanks for making this update!

@@ -61,7 +61,7 @@ agg_categorical <- function(dt,
"* See `missing_dt_severity` argument if it is okay to only make ",
"aggregate/scale data that are possible given what is available.\n",
paste0(capture.output(missing_dt), collapse = "\n"))
assertive::assert_engine(empty_missing_dt, missing_dt,
assertive.base::assert_engine(empty_missing_dt, missing_dt,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks like we need to come up with an alternative to signaling different severity levels before we can fully remove assertive.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah exactly. I got stuck on this but assertive.base seems to work for now.

@@ -516,7 +516,7 @@ assert_agg_scale_args <- function(dt,

}
} else {
assertthat::assert_that(assertive::is_null(mapping),
assertthat::assert_that(is.null(mapping),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For later: I don't think assertthat buys us anything over checkmate and we should also consider switching that over as well

@krpaulson krpaulson merged commit c746651 into ihmeuw-demographics:main Feb 22, 2024
0 of 7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants