From pengyu.ut at gmail.com  Tue Nov 17 04:51:52 2009
From: pengyu.ut at gmail.com (Peng Yu)
Date: Mon, 16 Nov 2009 21:51:52 -0600
Subject: [Rd] How to generate dependency file that can be used by gnu
	make?
In-Reply-To: <366c6f340911151845w75c4443j848d4edf986e7aa@mail.gmail.com>
References: <366c6f340911151845w75c4443j848d4edf986e7aa@mail.gmail.com>
Message-ID: <366c6f340911161951rbbc5d77hccf7d886ca7f14b7@mail.gmail.com>

On Sun, Nov 15, 2009 at 8:45 PM, Peng Yu <pengyu.ut at gmail.com> wrote:
> gcc has options like -MM, which can generate the dependence files for
> a C/C++ file that I can be used by gnu make. I'm wondering if there is
> a tool that can generate dependence file for an R script.
>
> For example, I have an R script test.R
>
> #########test.R
> load('input.RData')
> save.image('output.RData')
>
>
> I want to generate a dependence file like the following. Is there a
> tool to do so?
>
> output.RData:test.R input.RData

Is there a way to automatically generate the output files that depends
on an R script and the input files and sourced files that are depended
by an R script? I don't see this option in R. But I wish this can be
implemented in future version of R.



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