[Rd] Where to put sgml file

2006-10-09 Thread Gabor Grothendieck
I have a package that will have an sgml file.  One of the demos in ./demo
will use it.  Where should I put it?

I tried putting it in ./demo but it did not survive the build so
currently I put it in ./inst and it gets copied to the same level as the
DESCRIPTION file and the demo gets it from there.  Is that right or
is there a better choice?  I assume I can't use ./data since its not in
the form that is directly readable as an R data file.

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] Where to put sgml file

2006-10-09 Thread Roger Bivand
On Mon, 9 Oct 2006, Gabor Grothendieck wrote:

 I have a package that will have an sgml file.  One of the demos in ./demo
 will use it.  Where should I put it?
 
 I tried putting it in ./demo but it did not survive the build so
 currently I put it in ./inst and it gets copied to the same level as the
 DESCRIPTION file and the demo gets it from there.  Is that right or
 is there a better choice?  I assume I can't use ./data since its not in
 the form that is directly readable as an R data file.

Perhaps add a folder to ./inst, and put the file there. You can always get 
to it with system.file(). 

 
 __
 R-devel@r-project.org mailing list
 https://stat.ethz.ch/mailman/listinfo/r-devel
 

-- 
Roger Bivand
Economic Geography Section, Department of Economics, Norwegian School of
Economics and Business Administration, Helleveien 30, N-5045 Bergen,
Norway. voice: +47 55 95 93 55; fax +47 55 95 95 43
e-mail: [EMAIL PROTECTED]

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel


Re: [Rd] Where to put sgml file

2006-10-09 Thread Friedrich Leisch
 On Mon, 9 Oct 2006 11:46:51 -0400,
 Gabor Grothendieck (GG) wrote:

   I have a package that will have an sgml file.  One of the demos in ./demo
   will use it.  Where should I put it?

   I tried putting it in ./demo but it did not survive the build so
   currently I put it in ./inst and it gets copied to the same level as the
   DESCRIPTION file and the demo gets it from there.  Is that right or
   is there a better choice?

I would probably use a directory inst/sgml-files (replace sgml-files
by your favorite name which is not already used by R like data) and
place the file there. If it is a single file and no second file is on
the horizon, then putting it directly into inst is also OK.

   I assume I can't use ./data since its not in
   the form that is directly readable as an R data file.

exactly.

best,
fritz

__
R-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel