R/siteDB.R

Defines functions siteDB

## siteDB: return the full path to a site's .sqlite file
## which holds metadata about gps, param settings, and raw files
##

siteDB = function(proj, site, year = lubridate::year(Sys.time())) {
    rv = siteFile(".sqlite", proj, site, year)
    if (length(rv) == 0)
        stop("No database for specified year, project, site")
    return(rv)
}
jbrzusto/sensorgnome-R-package documentation built on May 18, 2019, 9:19 p.m.