On 19/05/18 07:44, Ben Bolker wrote:


   I notice that when I say  help(package="MASS") I get separate indices
for functions and data sets.  AFAICT this doesn't seem to occur in other
packages that have both functions and data sets (e.g. mgcv, lattice,
lme4), despite the tags \docType{data} and \keywords{datasets} being
used in the relevant .Rd files; I don't see any other obvious magic in
the .Rd files for MASS (in fact, they don't use the \docType{} tag at
all ...

   Before I go spelunking, does anyone have any guesses/ideas/information
about why MASS is special (or if it is)?

Doesn't happen to me. (I am still using R 3.4. Is this an R 3.5 phenomenon?) I get single alphabetical listing, of functions and data sets, intermingled. E.g.:

                                          -- A -- > abbey      Determinations 
of Nickel Content
accdeaths         Accidental Deaths in the US 1973-1978
addterm           Try All One-Term Additions to a Model
addterm.default Try All One-Term Additions to a Model
addterm.glm       Try All One-Term Additions to a Model
addterm.lm        Try All One-Term Additions to a Model
Aids2     Australian AIDS Survival Data
Animals           Brain and Body Weights for 28 Species
...
...

My session info:

 > sessionInfo()
R version 3.4.4 (2018-03-15)
Platform: x86_64-pc-linux-gnu (64-bit)
Running under: Ubuntu 16.04.4 LTS

Matrix products: default
BLAS: /usr/local/lib64/R/lib/libRblas.so
LAPACK: /usr/local/lib64/R/lib/libRlapack.so

locale:
[1] LC_CTYPE=en_NZ.UTF-8 LC_NUMERIC=C [3] LC_TIME=en_NZ.UTF-8 LC_COLLATE=en_NZ.UTF-8 [5] LC_MONETARY=en_NZ.UTF-8 LC_MESSAGES=en_NZ.UTF-8 [7] LC_PAPER=en_NZ.UTF-8 LC_NAME=C [9] LC_ADDRESS=C LC_TELEPHONE=C [11] LC_MEASUREMENT=en_NZ.UTF-8 LC_IDENTIFICATION=C
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] misc_0.0-16

loaded via a namespace (and not attached):
[1] Brobdingnag_1.2-4 splines_3.4.4 gtools_3.5.0 [4] StanHeaders_2.16.0-1 threejs_0.3.1 shiny_1.0.3 [7] assertthat_0.2.0 stats4_3.4.4 pillar_1.0.1

<SNIP>

cheers,

Rolf

--
Technical Editor ANZJS
Department of Statistics
University of Auckland
Phone: +64-9-373-7599 ext. 88276

______________________________________________
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel

Reply via email to