Re: [R] Sweave and paths

From: <Friedrich.Leisch_at_tuwien.ac.at>
Date: Thu 19 May 2005 - 22:52:44 EST

>>>>> On Tue, 17 May 2005 14:31:53 -0400, >>>>> Bill Rising (BR) wrote:

> Is there some way to encourage \SweaveInput{foo} to find foo in a
> subdirectory of a file tree?

Sure: Write some code doing it ;-)

> Something along the lines of the
> behavior of list.files(<stuff>, recursive=TRUE). This would be very
> helpful at calling small modular files, such as solution sets and the
> like.

> I couldn't see anything in the documentation, and I looked in the
> source code, but it seems that SweaveReadFiledoc() wants to look only
> in the directory which contains foo.

Well, if you know where it is you can always use the path in the \SweaveInput{} statement, i.e.,

        \SweaveInput{foo/bar}

works for me.

Best,

-- 
-------------------------------------------------------------------
                        Friedrich Leisch 
Institut für Statistik                     Tel: (+43 1) 58801 10715
Technische Universität Wien                Fax: (+43 1) 58801 10798
Wiedner Hauptstraße 8-10/1071
A-1040 Wien, Austria             http://www.ci.tuwien.ac.at/~leisch

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
Received on Thu May 19 22:58:33 2005

This archive was generated by hypermail 2.1.8 : Fri 03 Mar 2006 - 03:31:51 EST