Run the mendel binary in directory Dir using control file Control

run_mendel(
  Dir,
  Control,
  discard_stderr = getOption("CKMRsim.discard_stderr", default = FALSE),
  discard_stdout = getOption("CKMRsim.discard_stdout", default = FALSE)
)

Arguments

Dir

the directory in which to run mendel

Control

the "control file" with which to run mendel. If not an absolute path it should be given relative to the Dir directory.

discard_stderr

If TRUE, stderr is discarded Otherwise, it gets written to the R console.

discard_stdout

If TRUE, stdout is discarded. Otherwise, it gets written to the R console.

Examples

if (FALSE) {
# first prepare the input files and define tmpDir
example(write_all_mendel_files)

# then run mendel
run_mendel(tmpDir, "mendel-example-Control.in")
}