hadley / strict

Make R a little bit stricter
235 stars 10 forks source link

`strict_drop()` error message should also make sense for subsetting rows #20

Closed naupaka closed 1 year ago

naupaka commented 7 years ago

Great idea and package! Small issue in shim-risky.R: Perhaps change error message to "when selecting a single column or row"? Or disable warning because default is already drop = FALSE for rows?

> library("strict")
> mtcars[1, ]
Error: [strict]
Please explicitly specify `drop` when selecting a single column
Please see ?strict_drop for more details