Giter VIP home page Giter VIP logo

Comments (4)

hongyuanjia avatar hongyuanjia commented on June 20, 2024

That's the designed behavior. read_idf() will fail if eplusr could not find the corresponding version of IDD file and run_idf() will fail if corresponding version of EnergyPlus. But the error messages you got were wired. It should be something like below:

read_idf("schedule.idf")
#> Error : Idd v8.5.0 has not been parsed before. Try to locate `Energy+.idd` in EnergyPlus v8.5.0 installation folder `C:/EnergyPlusV8-5-0`.
#> Failed to locate `Energy+.idd` because EnergyPlus v8.5.0 is not available. 

run_idf(model = "schedule.idf", weather = "test.epw")
#> Error : Cannot locate EnergyPlus v8.5.0 at default installation path `C:/EnergyPlusV8-5-0`. Please specify explicitly the path of EnergyPlus installation.

You can list all available EnergyPlus and IDD using avail_eplus() and avail_idd().

eplusr tries to find all available EnergyPlus installed at default locations (for Windows C:\EnergyPlusVX-Y-Z) . As your EnergyPlus was not installed at the default location, you have to add the path using use_eplus() before you parse or run any model of that version.

from eplusr.

jywang2016 avatar jywang2016 commented on June 20, 2024

Thanks for the reply! In fact, I have use specify the corresponding version of IDD by use_eplus(eplus = 'D:/EnergyPlusV8-5-0' ), the results seems indicate the IDD file has been parsed:

> library(eplusr)
> use_eplus(eplus = 'D:/EnergyPlusV8-5-0')
EnergyPlus v8.5.0 located at `D:/EnergyPlusV8-5-0` has been added.
> idd <- use_idd(8.5)
Idd v8.5.0 has not been parsed before. Try to locate `Energy+.idd` in EnergyPlus v8.5.0 installation folder `C:/EnergyPlusV8-5-0`.
IDD file found: `D:\EnergyPlusV8-5-0\Energy+.idd`.
Start parsing...
  Parsing IDD (Complete) [====================================================] 100% in  3s

The avail_eplus() and avail_idd() also show the V8-5 is available:

> avail_eplus()
[1] "8.5.0"
> avail_idd()
[1] "8.5.0"

I try to install the EPlus in the default path, but it shows the same error messages. Is there something broken in the processx package in my R environment?

I install R 3.5.0 and the code works. It seems something is broken in my R 3.5.1 about callr or processx.

Thanks for your help.

JY

from eplusr.

jywang2016 avatar jywang2016 commented on June 20, 2024

The codes also works after I reinstall the ps processx and callr packages. Therefore, I guess the problem occurs because one of the three package is broken, it is not caused by eplusr itself.

from eplusr.

hongyuanjia avatar hongyuanjia commented on June 20, 2024

Thanks for the info! Good to know so.

from eplusr.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.