[Rd] rep/rep.int: in NEWS, but not yet ported from trunk

Suharto Anggono Suharto Anggono suharto_anggono at yahoo.com
Sun Feb 26 13:02:44 CET 2017


According to "CHANGES IN R 3.3.2 patched" in NEWS, rep(x, times) and rep.int(x, times) also work when 'times' has length greater than one and has element larger than the maximal integer. In fact, it is still not the case in R 3.3.3 beta r72259. In seq.c (https://svn.r-project.org/R/branches/R-3-3-branch/src/main/seq.c), 'times' that is a vector with storage mode "double" and length greater than one is still changed first to storage mode "integer". Number in 'times' that represents an integer that is larger than the maximal integer becomes NA and error is issued for such 'times'.

I have put a comment, https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=16932#c30 .



More information about the R-devel mailing list