[Rd] system.file() to read a text file from a vignette

2011-03-23 Thread Michael Friendly
[Env: R 2.12.2, WinXp] In a vignette for the vcdExtra package, I had a text file, tv.dat under data/, that I used in the vignette as tv1,results=verbatim= tv.data-read.table(system.file(data,tv.dat,package=vcdExtra)) head(tv.data,5) @ I was told that this now generates a warning for

Re: [Rd] system.file() to read a text file from a vignette

2011-03-23 Thread Tobias Verbeke
Hi Michael, On 03/23/2011 03:03 PM, Michael Friendly wrote: [Env: R 2.12.2, WinXp] In a vignette for the vcdExtra package, I had a text file, tv.dat under data/, that I used in the vignette as tv1,results=verbatim= tv.data-read.table(system.file(data,tv.dat,package=vcdExtra)) head(tv.data,5)

Re: [Rd] system.file() to read a text file from a vignette

2011-03-23 Thread Duncan Murdoch
On 23/03/2011 10:03 AM, Michael Friendly wrote: [Env: R 2.12.2, WinXp] In a vignette for the vcdExtra package, I had a text file, tv.dat under data/, that I used in the vignette as tv1,results=verbatim= tv.data-read.table(system.file(data,tv.dat,package=vcdExtra)) head(tv.data,5) @ I was told

Re: [Rd] system.file() to read a text file from a vignette

2011-03-23 Thread Michael Friendly
On 3/23/2011 10:21 AM, Duncan Murdoch wrote: Everything in the inst directory is moved up a level when it is installed. So you shouldn't mention inst in its path. I discovered this by error-and-trial. ?system.file is mute on this. Perhaps R-ext.pdf could make this explicit by saying The