eplus_sql {eplusr}R Documentation

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.

Author(s)

Hongyuan Jia

Examples

## 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(), echo = FALSE)

    # create from local file
    sql <- eplus_sql(file.path(tempdir(), "1ZoneUncontrolled.sql"))
}

## End(Not run)

[Package eplusr version 0.15.1 Index]