ColinFay / attempt

Tools for defensive programming in R
Other
124 stars 12 forks source link

[enhancement] return_if #8

Open ColinFay opened 6 years ago

ColinFay commented 6 years ago

Wrapper around

if (this) return(x)

ColinFay commented 6 years ago

I think we could also go for things around return_if_is:

return_if_is(this, "numeric", that)

Which could also work for

stop_if_is(this, "numeric", message) 

Ideas :