[R] How to generate dependency file that can be used by gnu make?

Peng Yu pengyu.ut at gmail.com
Mon Nov 16 03:45:24 CET 2009


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




More information about the R-help mailing list