[R] Which should I use? system.file() path.package() find.package()

From: Kevin Wright <kw.stat_at_gmail.com>
Date: Mon, 18 Apr 2011 22:19:09 -0500

For a package that I am creating, I have some files in the "inst" directory. In the package man pages, I want to have R code that accesses these files.

As of R-2.13.0, it looks like I can use any of: system.file() path.package() find.package()

There are some differences between these functions, so I am wondering, is there is a preferred approach?

Kevin Wright

        [[alternative HTML version deleted]]

R-help_at_r-project.org 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 19 Apr 2011 - 03:22:36 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 19 Apr 2011 - 12:30:31 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.

list of date sections of archive