R:
test_function <- function(x){
Sys.sleep(2)
x
}
remake.yml:
sources: test_function.R
targets:
all:
depends:
- test
test:
depends: remake.yml
command: test_function(I(3))
check: code
make()
#> [ LOAD ]
#> [ READ ] | # loading sources
#> < MAKE > all
#> [ BUILD ] test | test <- test_function(3)
#> [ READ ] | # loading packages
#> [ ----- ] all
New remake.yml:
sources: test_function.R
targets:
all:
depends:
- test
test:
depends: remake.yml
command: test_function(I(2))
check: code
make()
#> [ LOAD ]
#> [ READ ] | # loading sources
#> < MAKE > all
#> [ OK ] test
#> [ ----- ] all
check: all seems to work.
R:
remake.yml:New
remake.yml:check: allseems to work.