Skip to content
Back to formatted view

Raw Message

Message-ID: <94968cc4-8943-0167-7e4b-f1dc544d1b33@oracle.com>
Date: 2019-08-16T15:21:09Z
From: Stepan
Subject: Deparsing raw vectors with names

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