Learn R Programming

eplusr (version 0.9.4)

eplus_sql: Read an Energy SQLite Output File

Description

eplus_sql() takes an EnergyPlus SQLite output file as input, and returns an EplusSQL object for collecting simulation outputs. For more details, please see EplusSql.

Usage

eplus_sql(sql)

Arguments

sql

A path to an local EnergyPlus SQLite output file.

Value

An EplusSql object.

Examples

Run this code
# 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"))
}
# }

Run the code above in your browser using DataLab