[R] How to see data for a package built under Windows
John Fox
jfox at mcmaster.ca
Sat Jun 14 14:09:10 CEST 2008
Dear Gillian,
Unless you add the directive
LazyData: yes
to the package DESCRIPTION file, you'll need to use the data() command to
access the data in the package -- e.g., data(Mowatt).
I hope this helps,
John
------------------------------
John Fox, Professor
Department of Sociology
McMaster University
Hamilton, Ontario, Canada
web: socserv.mcmaster.ca/jfox
> -----Original Message-----
> From: r-help-bounces at r-project.org [mailto:r-help-bounces at r-project.org]
On
> Behalf Of Gillian Raab
> Sent: June-14-08 7:49 AM
> To: r-help at r-project.org
> Subject: [R] How to see data for a package built under Windows
>
> I have followed the instructions on how to build a Windows package and
> everything seems to work EXCEPT that I can't see the data files that I
have
> loaded into the data directory. I have placed the appropriate data in the
> data directory (as in the instructions). There are 3 data sets, which I
can
> see when I use the command in R. Details below. I have searched everywhere
> to try to fix this, but no luck. Help please.
>
> Gillian Raab, Edinburgh, Scotland
>
> > data(package='DiagMeta')
>
> a windows pops up containing the following (Mowatt has a comment because I
> have documented it)
>
> Data sets in package 'DiagMeta':
>
> Mowatt Mowatt meta analysis
> Scheidler
> Wardlaw
>
>
> But when I type
> >Mowatt it is not found.
>
> The output I get at the command prompt when creating the zip file gives
>
> C:\Documents and Settings\gillian raab\Desktop\francescaR>R CMD INSTALL
> --build
> DiagMeta
> installing to 'c:/PROGRA~1/r/R-27~1.0/library'
>
> Using auto-selected zip options ''
>
> ---------- Making package DiagMeta ------------
> adding build stamp to DESCRIPTION
> installing R files
> installing data files
> preparing package DiagMeta for lazy loading
> Loading required package: lme4
> Loading required package: Matrix
> Loading required package: lattice
>
> Attaching package: 'Matrix'
>
>
> The following object(s) are masked from package:stats :
>
> xtabs
>
> Warning in namespaceImportFrom(self, asNamespace(ns)) :
> replacing previous import: cov2cor
> Warning in namespaceImportFrom(self, asNamespace(ns)) :
> replacing previous import: update
> Warning in namespaceImportFrom(self, asNamespace(ns)) :
> replacing previous import: xtabs
> installing man source files
> installing indices
> not zipping data
> installing help
> >>> Building/Updating help pages for package 'DiagMeta'
> Formats: text html latex example chm
> Mowatt text html latex
> antilogit text html latex example
> bivarROC text html latex
> logit text html latex example
> plotfor text html latex example
> twouni text html latex example
> adding MD5 sums
>
> packaged installation of package 'DiagMeta' as DiagMeta_1.01.zip
> * DONE (DiagMeta)
>
> C:\Documents and Settings\gillian raab\Desktop\francescaR>
>
> I
> --
> Gillian M Raab
> 10 Ainslie Place EH3 6AS
> tel 0131 226 6234
> mobile 07748 678 551
>
> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help
mailing list