There are a lot of tests but there are likely some redundant ones or instances that can be cleaned up for readability. For example, a lot of the factor(c('a', 'b', 'c', 'd')) etc. can be written as gl(4,1), which would make the setup of test data frames easier.
I should also comb through the individual contrast functions and ensure they're all properly tested for all edge cases.
There are a lot of tests but there are likely some redundant ones or instances that can be cleaned up for readability. For example, a lot of the
factor(c('a', 'b', 'c', 'd'))
etc. can be written asgl(4,1)
, which would make the setup of test data frames easier.I should also comb through the individual contrast functions and ensure they're all properly tested for all edge cases.