From h.wickham at gmail.com  Wed Jul 29 00:03:14 2009
From: h.wickham at gmail.com (hadley wickham)
Date: Tue, 28 Jul 2009 15:03:14 -0700
Subject: [Rd] Checking package on Windows (and seemingly irreproducible
	errors in CRAN checks)
In-Reply-To: <1248815669.30084.15.camel@ubuntu>
References: <1248813071.4657.18.camel@kropotkin>
	<1248815669.30084.15.camel@ubuntu>
Message-ID: <f8e6ff050907281503m6e41c947s67548b2351d778b1@mail.gmail.com>

On Tue, Jul 28, 2009 at 2:14 PM, Mathieu Ribatet<mathieu.ribatet at epfl.ch> wrote:
> Dear Carlos,
>
> >From your check results:
>
> ? ? ? ?cbc.data <- cbc.read.table( system.file("data",
> ? ? ? ?"cbc.test.data.txt", package = "colbycol"), sep = "\t" )
> ? ? ? ? ? ? ? ?Warning in file(file, "r") :
> ? ? ? ? ? ? ? ?cannot open file '0001': No such file or directory
>
> I think you're trying to read the file "cbc.test.data.txt" located in
> the folder "data" of your package skeleton. Is that right? If so, maybe
> using
>
> ? ? ? ?paste(system.file(package = "colbycol"),
> ? ? ? ?"data/cbc.test.data.txt", sep="/")
>
> will solve your issue - although I didn't try.

That's a step in the wrong direction - you're using a whole lot of
platform specific constructs.

Hadley


-- 
http://had.co.nz/



[Rd] Checking package on Windows (and seemingly irreproducible errors in CRAN checks)
hadley wickham