placement of DTD files in a package?
3
0
Entering edit mode
@anthony-rossini-10
Last seen 10.1 years ago
So, do DTD files get placed under data or in a completely separate location, for installation purposes? (i.e. ../package/data, ../package/inst/xml, or ../package/inst/dtd, or other??) best, -tony
• 1.2k views
ADD COMMENT
0
Entering edit mode
@anthony-rossini-10
Last seen 10.1 years ago
On Wed, 20 Mar 2002, Vincent Carey 525-2265 wrote: > > > So, do DTD files get placed under data or in a completely separate location, for installation purposes? (i.e. ../package/data, ../package/inst/xml, or ../package/inst/dtd, or other??) > > > > i know of no convention on this. we may not need one. > package code that uses the DTD will have to be explicit > about its location. any of the choices you list may > be appropriate depending on the visibility and separateness > of resources desired by the package designer. > > does this lead to cacophony in package structure? > i don't think so. I think I agree with you. I don't have strong feelings on the matter, other than if a standard workflow for determination exists, that I might as well use it. The context is the DTD describing the XML format for a dataset. I'm tempted to stick it in ../package/inst/dtd, but was wondering how others have dealt with it. I sent the question here, since the number of package developers using R XML outside of this particular mailing list seems small. best, -tony
ADD COMMENT
0
Entering edit mode
@vincent-j-carey-jr-4
Last seen 17 days ago
United States
> So, do DTD files get placed under data or in a completely separate location, for installation purposes? (i.e. ../package/data, ../package/inst/xml, or ../package/inst/dtd, or other??) > i know of no convention on this. we may not need one. package code that uses the DTD will have to be explicit about its location. any of the choices you list may be appropriate depending on the visibility and separateness of resources desired by the package designer. does this lead to cacophony in package structure? i don't think so.
ADD COMMENT
0
Entering edit mode
rgentleman ★ 5.5k
@rgentleman-7725
Last seen 9.4 years ago
United States
On Wed, Mar 20, 2002 at 02:19:56PM -0800, Anthony Rossini wrote: > On Wed, 20 Mar 2002, Vincent Carey 525-2265 wrote: > > > > > > So, do DTD files get placed under data or in a completely separate location, for installation purposes? (i.e. ../package/data, ../package/inst/xml, or ../package/inst/dtd, or other??) > > > > > > > i know of no convention on this. we may not need one. > > package code that uses the DTD will have to be explicit > > about its location. any of the choices you list may > > be appropriate depending on the visibility and separateness > > of resources desired by the package designer. > > > > does this lead to cacophony in package structure? > > i don't think so. > > I think I agree with you. I don't have strong feelings on the matter, other than if a standard workflow for determination exists, that I might as well use it. The context is the DTD describing the XML format for a dataset. I'm tempted to stick it in ../package/inst/dtd, but was wondering how others have dealt with it. I sent the question here, since the number of package developers using R XML outside of this particular mailing list seems small. > Me either, somehow I think of it (at least a bit) as data so I like package/inst/data but almost anything is fine we just need to ensure it gets copied over to the installation directory so it can get found automatically. > best, > -tony > > > > > _______________________________________________ > Bioconductor mailing list > Bioconductor@stat.math.ethz.ch > http://www.stat.math.ethz.ch/mailman/listinfo/bioconductor -- +--------------------------------------------------------------------- ------+ | Robert Gentleman phone : (617) 632-5250 | | Associate Professor fax: (617) 632-2444 | | Department of Biostatistics office: M1B28 | Harvard School of Public Health email: rgentlem@jimmy.dfci.harvard.edu | +--------------------------------------------------------------------- ------+
ADD COMMENT
0
Entering edit mode
Robert Gentleman <rgentlem@jimmy.harvard.edu> writes: > On Wed, Mar 20, 2002 at 02:19:56PM -0800, Anthony Rossini wrote: > > On Wed, 20 Mar 2002, Vincent Carey 525-2265 wrote: > > > > > > > > > So, do DTD files get placed under data or in a completely separate location, for installation purposes? (i.e. ../package/data, ../package/inst/xml, or ../package/inst/dtd, or other??) > > > > > > > > > > i know of no convention on this. we may not need one. > > > package code that uses the DTD will have to be explicit > > > about its location. any of the choices you list may > > > be appropriate depending on the visibility and separateness > > > of resources desired by the package designer. > > > > > > does this lead to cacophony in package structure? > > > i don't think so. > > > > I think I agree with you. I don't have strong feelings on the matter, other than if a standard workflow for determination exists, that I might as well use it. The context is the DTD describing the XML format for a dataset. I'm tempted to stick it in ../package/inst/dtd, but was wondering how others have dealt with it. I sent the question here, since the number of package developers using R XML outside of this particular mailing list seems small. > > > Me either, somehow I think of it (at least a bit) as data so I like > package/inst/data > but almost anything is fine > we just need to ensure it gets copied over to the installation > directory so it can get found automatically. I think eventually you would find that it is better to separate the dtd from the data -- i.e. use Tony's original idea of a ../package/inst/dtd directory. One reason for not mixing the DTD and the data is because the DTD tends to be more permanent than the data. You can be adding or modifying the data sets but the DTD, because it describes a data format, is a more stable description. Also, once you have a established and more-or-less finalized the DTD it is handy to make it available from an http server so you can begin the XML file with <foo> ... </foo> and a validating parser will have access to the DTD independently of the file's location. If you are going to create a collection of DTD's under, say, www.bioconductor.org/dtd/ it would be handy to have the DTD's within packages separately accessible and identifiable.
ADD REPLY
0
Entering edit mode
Okay, I like this argument. Unless anyone argues against it, I'll be using .../package/inst/dtd at least for DTDs which describe data or data structures. best, -tony On 20 Mar 2002, Douglas Bates wrote: > Robert Gentleman <rgentlem@jimmy.harvard.edu> writes: > > > On Wed, Mar 20, 2002 at 02:19:56PM -0800, Anthony Rossini wrote: > > > On Wed, 20 Mar 2002, Vincent Carey 525-2265 wrote: > > > > > > > > > > > > So, do DTD files get placed under data or in a completely separate location, for installation purposes? (i.e. ../package/data, ../package/inst/xml, or ../package/inst/dtd, or other??) > > > > > > > > > > > > > i know of no convention on this. we may not need one. > > > > package code that uses the DTD will have to be explicit > > > > about its location. any of the choices you list may > > > > be appropriate depending on the visibility and separateness > > > > of resources desired by the package designer. > > > > > > > > does this lead to cacophony in package structure? > > > > i don't think so. > > > > > > I think I agree with you. I don't have strong feelings on the matter, other than if a standard workflow for determination exists, that I might as well use it. The context is the DTD describing the XML format for a dataset. I'm tempted to stick it in ../package/inst/dtd, but was wondering how others have dealt with it. I sent the question here, since the number of package developers using R XML outside of this particular mailing list seems small. > > > > > Me either, somehow I think of it (at least a bit) as data so I like > > package/inst/data > > but almost anything is fine > > we just need to ensure it gets copied over to the installation > > directory so it can get found automatically. > > I think eventually you would find that it is better to separate the > dtd from the data -- i.e. use Tony's original idea of a > ../package/inst/dtd directory. > > One reason for not mixing the DTD and the data is because the DTD > tends to be more permanent than the data. You can be adding or > modifying the data sets but the DTD, because it describes a data > format, is a more stable description. > > Also, once you have a established and more-or-less finalized the DTD > it is handy to make it available from an http server so you can > begin the XML file with > > > > <foo> > ... > </foo> > > and a validating parser will have access to the DTD independently of > the file's location. If you are going to create a collection of DTD's > under, say, www.bioconductor.org/dtd/ it would be handy to have the > DTD's within packages separately accessible and identifiable. >
ADD REPLY

Login before adding your answer.

Traffic: 1029 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6