Skip to content

R source file Spotlight plugin for file indexing under Mac OS X Tiger

2 messages · Philion Vincent, Jan de Leeuw

#
Hello to all, very shortly after my post, I received a fully  
functional plugin that was developed by Carlos Ungil which is based  
on a LISP source code plugin for Spotlight originally written by John  
Wiseman.

With this new plugin, "R" source file contents are now perfectly  
indexed in Spotlight.

Spotlight will find "Program.R" file contents based on functions or  
any text in the R file.
Note that files with R extension = (eg Program.R) are recognized with  
a "com.apple.rez-source" UTI, so the programmer made sure his plugin  
would not interfere with the Apple UTI.

The file can be downloaded from:

http://ungil.com/R-Metadata-Importer.zip

1) Copy the R Metadata Importer.mdimporter file into the /Library/ 
Spotlight folder
2) Force Spotlight to reimport (index) the R files with this command  
in Terminal =
mdimport -r /Library/Spotlight/R\ Metadata\ Importer.mdimporter

I tested this on my Mac and it works great!

This is a very useful and fun contribution to "R" for Mac!

I hope this gets integrated in the install package so that all "Mac"  
R users can benefit from it!

Thank you!

Best regards,



Vincent Philion, M.Sc. agr.
IRDA
Laboratoire de production fruiti?re int?gr?e
335, Chemin des vingt-cinq Est
Saint-Bruno-de-Montarville
J3V 4P6
t?l?phone: 450-778-6522 poste 233
courriel: vincent.philion at irda.qc.ca
#
To make sure you have installed the plugin properly
say

mdimport -d1 foo.R

where foo.R is a file with R code. The -d1 flag
will tell you which plugin is used.

==========================================================
Jan de Leeuw, 11667 Steinhoff Rd, Frazier Park, CA 93225
home 661-245-1725 skype 661-347-0667 global 254-381-4905
.mac: jdeleeuw +++  aim: deleeuwjan +++ skype: j_deleeuw
==========================================================
                 Many nights on the road
        and not dead yet ---
                the end of autumn.       (Basho 1644-1694)