useeior
useeior copied to clipboard
compareEandLCIResult not working - Possible software version error
compareEandLCIResult() is generating the following error:
# Error in compareEandLCIResult(model, tolerance = 0.01) :
# could not find function "compareEandLCIResult"
This is my code (from https://github.com/USEPA/useeior?tab=readme-ov-file#validate-model)
library("useeior")
seeAvailableModels()
model <- buildModel('USEEIOv2.0.1-411')
modelval <- compareEandLCIResult(model, tolerance = 0.01)
print(paste("Number of flow totals by commodity passing:", modelval$N_Pass))
print(paste("Number of flow totals by commodity failing:", modelval$N_Fail))
And the result:
# Error in compareEandLCIResult(model, tolerance = 0.01) :
# could not find function "compareEandLCIResult"
I had similar issues with standardizeandcastSatelliteTable(), joinStringswithSlashes(), and joinStringswithSlashes().
When I go back and install v1.5.3, there is no error, and the example code works as expected.
Some functions were temporarily removed from the API due to new model types that make them not appropriate in all cases. You should be able to still access the function using a triple colon: useeior:::compareEandLCIResult(). We will need to update the README.