Re: [R] search path question

From: Barry Rowlingson <b.rowlingson_at_lancaster.ac.uk>
Date: Tue, 29 May 2007 19:24:46 +0100

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



R-help_at_stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code. Received on Tue 29 May 2007 - 18:24:21 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 29 May 2007 - 19:31:18 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.