[Rd] bug and enhancement to split?

2013-01-27 Thread Martin Morgan
With > R.version.string [1] "R Under development (unstable) (2013-01-26 r61752)" 'split.default' recycles a short factor for unclassed 'x', but not for an instance of x that is a class > split(1:5, 1:2) $`1` [1] 1 3 5 $`2` [1] 2 4 Warning message: In split.default(1:5, 1:2) : data length

[Rd] Minor issue in code of 'diffinv.vector' in R 2.15.2

2013-01-27 Thread Suharto Anggono Suharto Anggono
In R 2.15.2 (and not before), in the definition of function 'diffinv.vector' in package stats, there is difference <- as.integer(differences) I believe differences <- as.integer(differences) is intended, because 'difference' is not referenced anywhere. However, without conversion of 'differen