read_xmile: Loads a XMILE simulation file (.xmile)

Description Usage Arguments Details Value Examples

View source: R/ipysd.R

Description

read_xmile() calls pysd.read_xmile() and stores the object for further use. This is a key object, as it relates to a model and it can support a number of functions (e.g. model run, parameter changes)

Usage

1

Arguments

o

is the ipysd S3 object

file

is the filename and path for the Vensim mdl file that needs to be simulated

Details

The result is used as a parameter for simulation calls.

As it's a generic function, this call is dispatched to read_xmile.isdpy

Value

An S3 object of class ipysd that will contain a reference to the model

Examples

1
2
3
4
5
6
## Not run: 
target <- system.file("models/xmile", "Population.xmile", package = "pysd2r")
py <- pysd_connect()
read_xmile(py, target)

## End(Not run)

pysd2r documentation built on May 2, 2019, 3:40 p.m.