From S@E|||@on @end|ng |rom LGCGroup@com  Fri Aug  2 12:26:20 2019
From: S@E|||@on @end|ng |rom LGCGroup@com (Stephen Ellison)
Date: Fri, 2 Aug 2019 10:26:20 +0000
Subject: [Rd] R evolution suggestion request
In-Reply-To: <CAN--Dz29svNZJsJHmDCrBFB79+rFuk+7BmjQfhoLr8eupbRgtA@mail.gmail.com>
References: <CAN--Dz0HiEj3Up4SCTLng_VGP829fZsYyRDj5SKPO58XaqK62w@mail.gmail.com>
 <CAN--Dz29svNZJsJHmDCrBFB79+rFuk+7BmjQfhoLr8eupbRgtA@mail.gmail.com>
Message-ID: <ef92671d56c14343bf6f73e0f5c780ab@GBDCVPEXC08.corp.lgc-group.com>

> It is pure native R annotation, I mean ? la java. I wish to have an @
> operator available a R language level to create/embed real code
> annotations. Currently, the best I can get is to use a trick of hiding such
> thing behind a comment. Neither good, not the right way, as comments are
> comments, and annotations are annotations. They must be distinguished and
> distinguish-able immediately, both for humans and code parsers.

I can't comment on whether R can be extended in that way; that's R-core to answer. 
But @ is the slot extraction operator in S4 (see ?"@") so you'd need another operator symbol. 

But for faintly java-like annotation used for documentation and namespace management, you could look at the roxygen package; see 
https://cran.r-project.org/web/packages/roxygen2/vignettes/roxygen2.html

S Ellison


*******************************************************************
This email and any attachments are confidential. Any use, copying or
disclosure other than by the intended recipient is unauthorised. If 
you have received this message in error, please notify the sender 
immediately via +44(0)20 8943 7000 or notify postmaster at lgcgroup.com 
and delete this message and any copies from your computer and network. 
LGC Limited. Registered in England 2991879. 
Registered office: Queens Road, Teddington, Middlesex, TW11 0LY, UK


[Rd] R evolution suggestion request
Stephen Ellison