> 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 postmas...@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 ______________________________________________ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel