From j@g@nmn2 @end|ng |rom gm@||@com  Sat May  6 18:26:29 2023
From: j@g@nmn2 @end|ng |rom gm@||@com (Mikael Jagan)
Date: Sat, 6 May 2023 12:26:29 -0400
Subject: [Rd] Change DEFAULTDEPARSE to DEFAULTDEPARSE | SHOWATTRIBUTES ?
Message-ID: <fdc5b57c-b401-38df-1090-2109080eb98f@gmail.com>

The deparse options used by default by 'deparse' and 'dput' are

     c("keepNA", "keepInteger", "niceNames", "showAttributes")

but Defn.h still has

     #define DEFAULTDEPARSE		1089 /* KEEPINTEGER | KEEPNA | NICE_NAMES, used for 
calls */

i.e., with the SHOWATTRIBUTES bit turned off.  Is that on purpose?
Note that this leads to weird things like:

     > (expr <- call("is.matrix", matrix(1:4, 2L, 2L)))
     is.matrix(1:4)
     > eval(expr)
     [1] TRUE

which can confuse anyone not paying close attention ...

Mikael



[Rd] Change DEFAULTDEPARSE to DEFAULTDEPARSE | SHOWATTRIBUTES ?
Mikael Jagan