CompileInput: Convenience method to compile variables in parametrized file.

View source: R/client.R

CompileInputR Documentation

Convenience method to compile variables in parametrized file.

Description

Convenience method to compile variables in parametrized file.

Usage

CompileInput(model, input.files, input.values, output.dir = ".")

Arguments

model

name of the code wrapper to use. See .Funz.Models global var for a list of possible values.

input.files

files to give as input for the code.

input.values

list of variable values to compile.

output.dir

directory where to put compiled files.

Examples

## Not run: 
CompileInput(model = "R",
             input.files = file.path(Funz:::FUNZ_HOME,"samples","branin.R"),
             input.values = list(x1=0.5, x2=0.6))
CompileInput(model = "R",
             input.files = file.path(Funz:::FUNZ_HOME,"samples","branin.R"),
             input.values = list(x1=c(0.5,.55), b=c(0.6,.7)))

## End(Not run)

Funz/Funz.R documentation built on Jan. 28, 2024, 11:39 p.m.