gadget_update.gadgetfleet: Update gadget fleet components in a fleet file

Description Usage Arguments Examples

View source: R/gadgetfleet.R

Description

Replace and/or append new fleet comonents to an existing file

Usage

1
2
## S3 method for class 'gadgetfleet'
gadget_update(gf, component, ...)

Arguments

gf

The gadgetfile object to update

component

Either a replacement gadget_fleet_component (from MFDB or rgadget), or a component type name

...

If a component type was provided above, the extra options to supply to gadget_fleet_component

Examples

1
2
3
4
5
path <- './model'
gadgetfleet('fleet', path, missingOkay = TRUE) %>%
   gadget_update(gadget_fleet_component('understocking', name = 'understocking')) %>% # Add an understocking component
   gadget_update('understocking', name = 'understocking') %>% # Identical to above
   write.gadget.file(path)

bthe/rgadget documentation built on Oct. 21, 2018, 5:16 p.m.