Re: [R] Extracting data from .zip file in WINDOWS version of pack age

From: Liaw, Andy <andy_liaw_at_merck.com>
Date: Wed 21 Dec 2005 - 05:42:29 EST


I guess one possible work-around is to put the .ped file under inst/data/ in the source. At installation, the file will be put into data/. Untested, though.

Andy

From: Jain, Nitin
>
> Hello,
>
> I am building a R-package for Genetics analysis. The accepted
> data is in pedigree (.ped) file format.
>
> To load the data (say CAMP.ped) from "data" directory, I have
> a function "CAMP.R", which does the job.
> The package builds successfully in Linux (.tar.gz) and the
> data loads successfully by "data(CAMP)".
>
> However, when I build the package in WINDOWS, the data
> directory is zipped, and the command "data(CAMP)"
> gives an error -
> Error in readGenes(gfile = "CAMP.ped",....)
> Genotype file CAMP.ped does not exist.
>

> While debugging "data(CAMP)", I found that only the file
> "CAMP.R" is extracted temporarily, and not the file
> "CAMP.ped" - which causes the error.
>
> Linux version does not face this problem as the data
> directory is not zipped.
>
> Could you please suggest a way around for this problem?

>
> Thanks.
>
> Best,
> Nitin
> ______________________
> Nitin Jain, PhD
> <nitin.jain@pfizer.com>
> Non Clinical Statistics
> Pfizer, Inc. (Groton, CT)
> Bldg: 260, # 1451
> Ph: (860) 686-2526 (Office)
> Fax: (860) 686-6170
>
> ----------------------------------------------------------------------
> LEGAL NOTICE\ Unless expressly stated otherwise, this
> messag...{{dropped}}
>
> ______________________________________________
> R-help@stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide!
> http://www.R-project.org/posting-guide.html
>
>



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Wed Dec 21 06:14:10 2005

This archive was generated by hypermail 2.1.8 : Wed 21 Dec 2005 - 09:33:20 EST