# NOT RUN {
if (is_avail_eplus(8.8)) {
idf_name <- "1ZoneUncontrolled.idf"
epw_name <- "USA_CA_San.Francisco.Intl.AP.724940_TMY3.epw"
idf_path <- file.path(eplus_config(8.8)$dir, "ExampleFiles", idf_name)
epw_path <- file.path(eplus_config(8.8)$dir, "WeatherData", epw_name)
# copy to tempdir and run the model
idf <- read_idf(idf_path)
idf$run(epw_path, tempdir())
# create from local file
sql <- eplus_sql(file.path(tempdir(), "1ZoneUncontrolled.sql"))
# get sql file path
sql$path()
# list all tables in the sql file
sql$list_table()
# read a specific table
sql$read_table("Zones")
# read report data dictionary
sql$report_data_dict()
# read report data
sql$report_data(name = "EnergyTransfer:Building")
# read tabular data
sql$tabular_data()
}
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab