[R] where is "average shifted histogram"?

Peter Dalgaard p.dalgaard at biostat.ku.dk
Thu Jul 29 10:24:42 CEST 2004


Martin Maechler <maechler at 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 at biostat.ku.dk)             FAX: (+45) 35327907




More information about the R-help mailing list