Re: [R] where is "average shifted histogram"?

From: Peter Dalgaard <p.dalgaard_at_biostat.ku.dk>
Date: Thu 29 Jul 2004 - 18:24:42 EST

Martin Maechler <maechler@stat.math.ethz.ch> 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
~~~~~~~~~~ - (p.dalgaard@biostat.ku.dk)             FAX: (+45) 35327907

______________________________________________
R-help@stat.math.ethz.ch 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
Received on Thu Jul 29 18:35:48 2004

This archive was generated by hypermail 2.1.8 : Wed 03 Nov 2004 - 22:55:21 EST