[R-SIG-Mac] Xcode and R

thatsanicehatyouhave at mac.com thatsanicehatyouhave at mac.com
Fri Sep 18 22:49:34 CEST 2009


On 11 Sep 2009, at 04:21, Christophe Dutang wrote:

> Does someone know if there is a way Xcode highlights the R syntax?  
> just like aquamacs does?

I think that's something you'd have to do yourself. It involves  
creating two files, e.g.

R.xclangspec
R.pbfilespec

that include the keywords and directions to Xcode. I don't know the  
details of the internals of these files, but you can Google the terms  
"xclangspec" and "pbfilespec". I'm attaching two files that you can  
use as a starting point (I copied the python files to use as a  
template). I haven't been able to get them to work though. Finally,  
you'll need to install them in:

~/Library/Application Support/Apple/Developer Tools/Specifications

I think. :)

Let us know if you can get it to work.

Cheers,
Demitri

-------------- next part --------------
A non-text attachment was scrubbed...
Name: R.pbfilespec
Type: application/octet-stream
Size: 538 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-sig-mac/attachments/20090918/5341eca2/attachment-0002.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: R.xclangspec
Type: application/octet-stream
Size: 69458 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-sig-mac/attachments/20090918/5341eca2/attachment-0003.obj>


More information about the R-SIG-Mac mailing list