hongyuanjia / eplusr

A Toolkit for Using EnergyPlus in R.
https://hongyuanjia.github.io/eplusr
Other
69 stars 13 forks source link

Cannot use any function except for `list` on the RHS in `idf$set()` when LHS is object ID #545

Closed hongyuanjia closed 1 year ago

hongyuanjia commented 1 year ago
idf <- eplusr::read_idf(eplusr::path_eplus_example(22.1, "1ZoneUncontrolled.idf"))
#> IDD v22.1.0 has not been parsed before.
#> Try to locate 'Energy+.idd' in EnergyPlus v22.1.0 installation folder 'C:\EnergyPlusV22-1-0'.
#> IDD file found: 'C:\EnergyPlusV22-1-0\Energy+.idd'.
#> Start parsing...
#> Parsing completed.
idf$set(..5 = as.list(c("office", idf$object_name("Zone", TRUE))))
#> Error: Invalid object name found: '..5'

Created on 2023-03-16 with reprex v2.0.2