Reads, validates, and evaluates the constructor call described by the
spec — newTechnology(), newStorage() or newTrade() according to the
spec's class. Errors in the issue report stop the build (warnings are
shown).
Arguments
- spec
Path or list (see
read_process_spec()).- strict
Stop on warnings too? Default
FALSE.
See also
Other process spec:
process_spec_code(),
process_spec_issues(),
process_to_spec(),
read_process_spec()
Examples
f <- system.file("techspec", "examples", "coal_power.yml",
package = "energyRt")
if (nzchar(f)) process_from_spec(f)
#> Name: ECOA
#> desc: Coal condensing power plant
#> cap2act: 31.536
#> region: ""
#>
#> input
#> comm unit group combustion
#> 1 COA PJ <NA> NA
#>
#>
#> output
#> comm unit group
#> 1 ELC PJ <NA>
#>
#>
#> aux
#> acomm unit
#> 1 CO2 kt
#>
#>
#> units
#> capacity use activity costs
#> 1 GW <NA> PJ MUSD
#>
#>
#> ceff
#> vintage cluster region year timeslice comm cinp2use use2cact cact2cout
#> 1 <NA> <NA> <NA> NA <NA> COA 1 NA NA
#> 2 <NA> <NA> <NA> NA <NA> ELC NA 0.35 1
#> cinp2ginp grp.share.lo grp.share.up grp.share.fx afc.lo afc.up afc.fx
#> 1 NA NA NA NA NA NA NA
#> 2 NA NA NA NA NA NA NA
#>
#>
#> aeff
#> vintage cluster acomm comm region year timeslice cinp2ainp cinp2aout
#> 1 <NA> <NA> CO2 COA <NA> NA <NA> NA 96
#> cout2ainp cout2aout act2ainp act2aout cap2ainp cap2aout ncap2ainp ncap2aout
#> 1 NA NA NA NA NA NA NA NA
#> pho2ainp pho2aout ret2ainp ret2aout
#> 1 NA NA NA NA
#>
#>
#> af
#> vintage cluster region year timeslice af.lo af.up af.fx rampup rampdown
#> 1 <NA> <NA> <NA> NA <NA> NA 0.9 NA NA NA
#>
#>
#> fixom
#> vintage cluster region year fixom
#> 1 <NA> <NA> <NA> NA 30
#>
#>
#> invcost
#> vintage cluster region year invcost wacc payback eac retcost
#> 1 <NA> <NA> <NA> NA 1500 NA NA NA NA
#>
#>
#> vintage
#> vintage region cluster start end olife
#> 1 <NA> <NA> <NA> NA NA 40
#>
