Re: [Rd] mapply(): Special case of USE.NAMES=TRUE with recent R-devel updates

2021-11-30 Thread Hervé Pagès
And also: > mapply(paste, c(a="A"), character(), USE.NAMES = TRUE) Error in names(answer) <- names1 : 'names' attribute [1] must be the same length as the vector [0] When the shortest arguments get recycled to the length of the longest, shouldn't their names also get recycled? >

[Rd] mapply(): Special case of USE.NAMES=TRUE with recent R-devel updates

2021-11-30 Thread Henrik Bengtsson
Hi, in R-devel (4.2.0), we now get: > mapply(paste, "A", character(), USE.NAMES = TRUE) named list() Now, in ?mapply we have: USE.NAMES: logical; use the names of the first ... argument, or if that is an unnamed character vector, use that vector as the names. This basically says we should get: