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

qassertm: qassert for many at once #229

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Conversation

WillForan
Copy link

@WillForan WillForan commented Jul 22, 2022

I was looking for a way to condense

function(x,y,z){
  qassert(x='n')
  qassert(y='b')
  qassert(z='s')
}

and came up with

funtion(x,y,z) { qassertm(x='n', y='b', z='s') }

I also like it for checking specific columns of a datafame:

with(data.frame(x=1:10,y=T), qassertm(x='i', y='b'))

I'm not sure if this is generally helpful (#228) or if I missed a more idiomatic way to run multiple checks. Happy to see the request "ruthlessly closed" if fails on either front!

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.

None yet

1 participant