Re: [R] How to see data for a package built under Windows

From: John Fox <jfox_at_mcmaster.ca>
Date: Sat, 14 Jun 2008 08:09:10 -0400

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.



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. Received on Sat 14 Jun 2008 - 12:13:51 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sat 14 Jun 2008 - 13:30:41 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive