USEPA / useeior

Estimating potential environmental impacts of goods and services in the US economy
MIT License
31 stars 19 forks source link

Usage missing `attachNamespace("useeior")` #229

Closed robinsonkwame closed 2 years ago

robinsonkwame commented 2 years ago

eg,

> useeior::seeAvailableModels()
[1] "USEEIOv2.0-411"    "USEEIOv2.0-79-GHG" "USEEIOv2.0-GHG"   
[4] "USEEIOv2.0-i-GHG"  "USEEIOv2.0-is-GHG" "USEEIOv2.0-s-GHG" 
[7] "USEEIOv2.0.1-411"  "USEEIOv2.0"        "USEEIOv2.1-422"   
> model <- useeior::buildModel('USEEIOv2.0.1-411')
2022-07-07 10:53:04 INFO::Begin model initialization...
Error in as.environment("package:useeior") : 
  no item called "package:useeior" on the search list

but

> attachNamespace("useeior")
> useeior::seeAvailableModels()
[1] "USEEIOv2.0-411"    "USEEIOv2.0-79-GHG" "USEEIOv2.0-GHG"   
[4] "USEEIOv2.0-i-GHG"  "USEEIOv2.0-is-GHG" "USEEIOv2.0-s-GHG" 
[7] "USEEIOv2.0.1-411"  "USEEIOv2.0"        "USEEIOv2.1-422"   
> model <- useeior::buildModel('USEEIOv2.0.1-411')
2022-07-07 10:53:04 INFO::Begin model initialization...
...

works

MoLi7 commented 2 years ago

Thanks for the comment. Please refer to the updated Usage.