R/binary_model.R

Defines functions binary_model

Documented in binary_model

## model wrapper
binary_model <- function(command) {
    invoke <- function(param) {
        write.table(param, file = "input", row.names = F, col.names = F, quote = F)
        system(command)
        file.remove("input")
        output = read.table("output", header = F)
        file.remove("output")
        output
    }
} 

Try the EasyABC package in your browser

Any scripts or data that you put into this service are public.

EasyABC documentation built on Jan. 6, 2023, 1:14 a.m.