setup_script: Setup script

View source: R/setup_script.R

setup_scriptR Documentation

Setup script

Description

Runs setup for either the generate_data.R script or run_methods.R script. This script i) sets the seed (which has a global side-effect) ii) updates the value of B, if B !=0 (the default) iii) obtains the ordered set of arguments

Usage

setup_script(simulatr_spec, B_in, function_object, row_idx)

Arguments

simulatr_spec

simulation specifier object

B_in

B to set (0 means do not update)

function_object

either a method or data generation simulatr_function object

row_idx

row index of the parameter grid

Value

a list with the B-updated sim_spec object and ordered list of args


timothy-barry/simulatr documentation built on Sept. 6, 2024, 7:10 p.m.