[R] system-independent path for source()

Thomas Lumley tlumley at u.washington.edu
Wed Feb 20 21:27:28 CET 2002


On Wed, 20 Feb 2002, David R. Bickel wrote:

> Thanks for telling me about file.path. That solves the problem of the
> different separators, but UNIX begins the home path with "/" and MacOS
> begins the home path with the name of the hard disk.
>

The opposite problem also occurs when one wants a relative path
    ":some:long:path"
is the Mac equivalent of
     "some/long/path"

Perhaps file.path() should have an absolute/relative path option?

	-thomas

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list