check_stockfile: Check components of a Gadget stockfile that is being read

Description Usage Arguments Value Examples

Description

This function will check to see if the various components to a stockfile are present during reading and will format those components if present. If a filename is present in a various component then this function will read that filename and place the appropriate data into an attribute of the stockfile. This function is for use in read_gadget_stockfile

Usage

1
check_stockfile(stockfile, path = NULL)

Arguments

stockfile

The stockfile being read in by read_gadget_stockfile

path

Optional. Character vector of path to the directory where Gadget files are located

Value

A list the same as the stockfile, but with attributes added for data.

Examples

1
2
stockfile <- readLines("gadget_model/cod")
check_stockfile(stockfile)

inspktrgadget/gadgetSim documentation built on May 10, 2019, 9:51 a.m.