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

______________________________________________
R-help@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.

Reply via email to