Learn R Programming

osmose (version 3.3.4)

osmose_demo: Generates required OSMOSE configuration files to run a demo.

Description

Thins function

Usage

osmose_demo(path = NULL, config = "gog")

Arguments

path

Path where to put the Osmose configuration file.

config

Reference configuration to run ("gog").

Value

A list containing the configuration file to use (config_file) for running the code and the output directory to use when reading data.

Examples

Run this code
# NOT RUN {
rm(list=ls())

library("osmose")

# Copy configuration files into the proper directory
demo = osmose_demo(path="../", config="gog")

# run the osmose model
run_osmose(demo$config_file, parameters=NULL, output=NULL, version="3.3.3", 
          options=NULL, verbose=TRUE, clean=TRUE)

# reads output data
data = read_osmose(demo$output_dir)

# summarize output data
summary(data)

# plot output data
plot(data)
# }

Run the code above in your browser using DataLab