Closed jackhannah95 closed 4 years ago
Most of these changes are spacing and typos. The main change (and the one justifying updating to version 0.1.1) is changing any test along the lines
0.1.1
if (class(x != "y")) error to
if (class(x != "y")) error
if(!inherits(x, "y")) error
so as to better deal with situations like this:
data(airquality); class(tibble::as_tibble(airquality)) #> [1] "tbl_df" "tbl" "data.frame" class(tibble::as_tibble(airquality)) == "tbl" #> [1] FALSE TRUE FALSE inherits(tibble::as_tibble(airquality), "tbl") #> [1] TRUE
Let me know if you spot any more typos and I'll do another release once it's been merged.
Most of these changes are spacing and typos. The main change (and the one justifying updating to version
0.1.1
) is changing any test along the linesif (class(x != "y")) error
toif(!inherits(x, "y")) error
so as to better deal with situations like this:
Let me know if you spot any more typos and I'll do another release once it's been merged.