Skip to content

Conversation

simonpcouch
Copy link
Contributor

Closes #1185.⛴️

Comment on lines -40 to -45
# based on ?is.integer
int_check <- function(x, tol = .Machine$double.eps^0.5) abs(x - round(x)) < tol
if (!int_check(x$verbosity))
cli::cli_abort("{.arg verbosity} should be an integer.", call = call)
if (!is.logical(x$catch))
cli::cli_abort("{.arg catch} should be a logical.", call = call)
Copy link
Member

Choose a reason for hiding this comment

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

very nice!!

Copy link
Member

@EmilHvitfeldt EmilHvitfeldt left a comment

Choose a reason for hiding this comment

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

looking good! found one thing

Co-authored-by: Emil Hvitfeldt <[email protected]>
@simonpcouch simonpcouch merged commit 227ab92 into main Sep 9, 2024
10 checks passed
@simonpcouch simonpcouch deleted the remaining-1185 branch September 9, 2024 16:23
@github-actions
Copy link

This pull request has been automatically locked. If you believe you have found a related problem, please file a new issue (with a reprex: https://reprex.tidyverse.org) and link to this issue.

@github-actions github-actions bot locked and limited conversation to collaborators Sep 26, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

transition to rlang type checkers in remaining functions

2 participants