From g@bembecker @end|ng |rom gm@||@com  Tue Nov 12 23:10:34 2019
From: g@bembecker @end|ng |rom gm@||@com (Gabriel Becker)
Date: Tue, 12 Nov 2019 14:10:34 -0800
Subject: [Rd] calls with comment attribute
In-Reply-To: <CAF8bMcZcPwUZsoC_sg3SpUm2PeGentV0DcKQRdN8JtYb5K_Scw@mail.gmail.com>
References: <CAF8bMcZcPwUZsoC_sg3SpUm2PeGentV0DcKQRdN8JtYb5K_Scw@mail.gmail.com>
Message-ID: <CAD4oTHFSyiuLgvECrvEtBe8h0zQ7m+zzGy5RbLHSx3=wNRmk6g@mail.gmail.com>

Bill,

Without being involved in that code at all, it seems that this could be
used to (re)create commented source code from R objects. That format seems
to correspond directly to a call in a .R file with two comments above it. A
bit weird there's no comment character there but I guess thats expected to
be in the values of the comment attribute?

Anyway, just a guess.

Best,
~G

On Tue, Nov 12, 2019 at 2:02 PM William Dunlap via R-devel <
r-devel at r-project.org> wrote:

> In general R doesn't print the "comment" attribute of an object
>    > structure(1:3, comment=c("a comment", "another comment"))
>    [1] 1 2 3
> but if the object is a call it prints it in an unusual format
>    > structure(quote(func(arg)), comment=c("a comment", "another comment"))
>    a comment
>    another comment
>    func(arg)
>
> What is the rationale for the special treatment of calls?
>
> Bill Dunlap
> TIBCO Software
> wdunlap tibco.com
>
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> R-devel at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
>

	[[alternative HTML version deleted]]



[Rd] calls with comment attribute
Gabriel Becker