`write.config.xml.ED2()` doesn't use correct ED2 default dataset.
Aariq opened this issue · comments
Bug Description
Because the datasets history
, history.r46
, etc. are non-exported, data()
doesn't work on them. Current code to find the correct dataset based on the <revision>
tag is therefore broken
pecan/models/ed/R/write.configs.ed.R
Line 451 in ab55731
Proposed solution
Internal data should be referenced with packagename:::dataset
, so I'll replace the non-functioning code with a switch()
statement like:
edhistory <- switch(revision, "85" = PEcAn.ED2:::history.r85, ...)