Resolve filenames relative to the HH directory.

The pathnames for all the datasets and executable files in the online files accompanying Heiberger and Holland (2004) are given relative to the options()$HH.ROOT.DIR directory.

utilities, environment
Character string giving the pathname of a file in the HH online files relative to the options()$HH.ROOT.DIR directory. file is the name exactly as specified in Heiberger and Holland (2004). The hh functio

The datasets and code listings in Heiberger and Holland (2004) are all given paths relative to the beginning of the hh directory, which must be stored as options()$HH.ROOT.DIR If you installed the HH library from an R or S-Plus package, then option options()$HH.ROOT.DIR is set automatically. If you installed the HH library by unzipping the downloaded online files (not a package), then you must manually define the HH.ROOT.DIR option in your working directory (for example, "c:/HOME/yourname/.Data" in S-Plus, or the .GlobalEnv in R). You may do this in your .First function in either system. Or you may enter at the command prompt a statement of the form options(HH.ROOT.DIR="c:/HOME/hh") in Windows or options(HH.ROOT.DIR="/usr/users/hh") in Unix. See Appendix B of Heiberger and Holland (2004) for further details. The options statement may need to be modified to match the location of the hh directory on your machine. If you use more than one computer, you may need a different value for the HH.ROOT.DIR option on each machine. This is the only change you will need to make in order to run any of our software or examples. The hh function itself is unchanged.


  • Fully expanded, absolute pathname for the input filename.


Heiberger, Richard~M. and Holland, Burt (2004b). Statistical Analysis and Data Display: An Intermediate Course with Examples in S-Plus, R, and SAS. Springer Texts in Statistics. Springer. ISBN 0-387-40270-5.

  • hh
hotdog <- read.table(hh("datasets/hotdog.dat"), header=TRUE)
Documentation reproduced from package HH, version 1.18-1, License: GPL version 2 or newer

Community examples

Looks like there are no examples yet.