From friedrich.leisch at stat.uni-muenchen.de  Mon Oct  9 18:08:05 2006
From: friedrich.leisch at stat.uni-muenchen.de (Friedrich Leisch)
Date: Mon, 9 Oct 2006 18:08:05 +0200
Subject: [Rd] Where to put sgml file
In-Reply-To: <971536df0610090846y23b40eadq823be5265db40857@mail.gmail.com>
References: <971536df0610090846y23b40eadq823be5265db40857@mail.gmail.com>
Message-ID: <17706.29669.958145.312621@lxh5.stat.uni-muenchen.de>

>>>>> 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




[Rd] Where to put sgml file
Friedrich Leisch