[Rd] Deparsing raw vectors with names

Stepan @tep@n@@|nde|@r @end|ng |rom or@c|e@com
Fri Aug 16 17:21:09 CEST 2019


Hello,

deparse(structure(as.raw(1), .Names=c('a'))) gives "as.raw(c(a = 0x01))" 
in 3.5.1 and later (actually tested on 3.5.1, 3.6.1 and devel). If you 
execute as.raw(c(a = 0x01)), you get a raw vector without the names.

If the stripping of the names is the correct behavior of as.raw (I would 
think it is), then perhaps deparse should use the old behavior for raw 
vectors. On R-3.4.1 it gives: "structure(as.raw(0x01), .Names = 'a')".

Regards,
Stepan



More information about the R-devel mailing list