Re: [R] Modifying Package Data

2013-02-07 Thread S Ellison
> If > another user does not want to get the full taxonomic > description of that particular fly, he/she is welcome to > ignore it along with all the other taxa he/she is not referencing. All true, but the OP was asking about modifying a file that is part of an installed. package. That is sure

Re: [R] Modifying Package Data

2013-02-06 Thread Bert Gunter
Blast! -- dumb typo: On Wed, Feb 6, 2013 at 8:14 PM, Bert Gunter wrote: > Just wanted to point out... > > On Wed, Feb 6, 2013 at 7:20 PM, Rich Shepard wrote: >> On Wed, 6 Feb 2013, David Winsemius wrote: >> >>> Wouldn't this just be: >>> save(itis.table, file="/usr/lib/R/library/bio.infer/data/i

Re: [R] Modifying Package Data

2013-02-06 Thread Rich Shepard
On Wed, 6 Feb 2013, David Winsemius wrote: Wouldn't this just be: save(itis.table, file="/usr/lib/R/library/bio.infer/data/itis.ttable.rda") David, Almost certainly. I did not find the save function in the indices of my R library or the R data doc. Now I know it exists I'll read about it th

Re: [R] Modifying Package Data

2013-02-06 Thread Rich Shepard
On Wed, 6 Feb 2013, MacQueen, Don wrote: My sense is that even if this were possible (which I doubt), Don, It is possible. ... it would be outside the scope of what would be considered appropriate in R (assuming I understand the question). After all, it's someone else's package, theirs to

Re: [R] Modifying Package Data

2013-02-06 Thread Suzen, Mehmet
You can use system.file to fine the package root, then data file path relative to this. For example system.file(package = "stats") # The root of package 'stats' See ?system.file On 6 February 2013 22:02, David Winsemius wrote: > > On Feb 4, 2013, at 11:37 AM, Rich Shepard wrote: > >> The bio.in

Re: [R] Modifying Package Data

2013-02-06 Thread David Winsemius
On Feb 4, 2013, at 11:37 AM, Rich Shepard wrote: > The bio.infer package contains a data frame > /usr/lib/R/library/bio.infer/data/itis.ttable.rda that needs to be modified. > After loading the bio.infer package and attaching the data frame with the > data() function, I wrote the data frame to a

Re: [R] Modifying Package Data

2013-02-06 Thread MacQueen, Don
My sense is that even if this were possible (which I doubt), it would be outside the scope of what would be considered appropriate in R (assuming I understand the question). After all, it's someone else's package, theirs to control and maintain, etc. What if it's an installation of R on a multi-use