Re: [R] Building package - tab delimited example data issue

From: Johannes Graumann <>
Date: Thu, 06 Dec 2007 16:34:46 +0100

Peter Dalgaard wrote:

>> Answering to myself and staying with the same example:
>>         system.file("data/stroke.csv",package="ISwR")
>> allows direct access to the example file (name).

> Yes, but...
> This works right until you turn on LazyData for your package, then you
> end up with only
> 00Index Rdata.rdb Rdata.rds Rdata.rdx
> in the data directory.
How would you do it in that case?

> Use the "inst" source subdir for files you want
> to have installed explicitly.
Well: you provided the example ;0) - sort of ...

> Also, in principle, it is
> system.file("data", "stroke.csv", package="ISwR")
> although platforms that do not understand "/" as the path separator are
> rare nowadays.
Thanks for that hint!

Joh mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Thu 06 Dec 2007 - 15:47:49 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 Thu 06 Dec 2007 - 16:30:17 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.