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

From: Seth Falcon <seth_at_userprimary.net>
Date: Tue, 17 Nov 2009 07:25:45 -0800

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



R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Tue 17 Nov 2009 - 15:29:33 GMT

This archive was generated by hypermail 2.2.0 : Tue 17 Nov 2009 - 16:50:41 GMT