From seth at userprimary.net  Tue Nov 17 16:25:45 2009
From: seth at userprimary.net (Seth Falcon)
Date: Tue, 17 Nov 2009 07:25:45 -0800
Subject: [Rd] How to generate dependency file that can be used by gnu
 make?
In-Reply-To: <366c6f340911170502t7fe40f12v440787818528d77a@mail.gmail.com>
References: <366c6f340911151845w75c4443j848d4edf986e7aa@mail.gmail.com>	<366c6f340911161951rbbc5d77hccf7d886ca7f14b7@mail.gmail.com>	<8d4c23b10911162133t2dcf3d15l14b6d864c3be1616@mail.gmail.com>
	<366c6f340911170502t7fe40f12v440787818528d77a@mail.gmail.com>
Message-ID: <4B02C079.9020107@userprimary.net>

On 11/17/09 5:02 AM, Peng Yu wrote:
> This may not easy to do, when the filename are not hard coded strings.
> For example, the variable 'filename' is a vector of strings.
>
> for (i in 1:length(filename)){
> do something...
> save(....,file=filename[i])
> }
>

That's right.  I don't think there is a feasible general solution.  You 
might have more success with a convention-based approach for your 
scripts that would allow a simple parser to identify output files by 
name convention, for example.

+ seth



[Rd] How to generate dependency file that can be used by gnu make?
Seth Falcon