[R] search path question

Barry Rowlingson b.rowlingson at lancaster.ac.uk
Tue May 29 20:24:46 CEST 2007


Zhiliang Ma wrote:
> Thanks, Barry.
> In fact, I have a function just like yours, and I'm looking for a simple
> alternative function, which is like "path" in Matlab.

  Dont think it can be done - if you look at the code for 'scan', it 
disappears off into internal() calls to do the business of finding and 
reading a file, so you're going to have trouble changing its behaviour 
in R. You'd have to patch R's C source to implement a search path.

Barry



More information about the R-help mailing list