Martin Maechler <[EMAIL PROTECTED]> writes:

>     PD> file.show(file.path(.path.package("MASS"),"scripts","ch05.R"))
> 
> eehm, as the "." in ".path.package()" suggests, there should be
> a more canonical way --- and there is, using system.file() :
> 
>  dir(system.file("scripts", package = "MASS"))

Drats! Forgot about that completely. As a feeble defense, they don't
quite do the same thing if there are multiple versions of a package
installed though. (system.file gives all of them, .path.package only
loaded packages).

Not that I remembered to check the help pages either, but we should
probably add something to the "See Also" on bothe of them. 

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - ([EMAIL PROTECTED])             FAX: (+45) 35327907

______________________________________________
[EMAIL PROTECTED] mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html

Reply via email to