On Tue, 20 Dec 2005, Jain, Nitin wrote: > 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.
Well, not zipped by default: it can be zipped. > Could you please suggest a way around for this problem? You need to read the `Writing R Extensions' manual and set the appropriate option in the DESCRIPTION file. Search for 'ZipData' -- Brian D. Ripley, [EMAIL PROTECTED] Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272866 (PA) Oxford OX1 3TG, UK Fax: +44 1865 272595 ______________________________________________ [email protected] mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
