richfitz / remake

Make-like declarative workflows in R
Other
340 stars 32 forks source link

Allow diamond-style includes #105

Open krlmlr opened 8 years ago

krlmlr commented 8 years ago

Multiple includes of the same .yml currently gives All target names must be unique, this seems unnecessary. Example:

# base.yml
targets:
  test:
    command: quote(TRUE)

# a.yml
include:
  - base.yml

# b.yml
include:
  - base.yml

# remake.yml
include:
  - a.yml
  - b.yml
krlmlr commented 8 years ago

We should also consider making recursive includes a no-op (with some output).