README.md

RArable

A R package for Arable API

Install

devtools::install_github('byzheng/RArable')

Usage

library(RArable)
email <- 'your-email@company.com'
password <- 'your-password'
tenant <- 'your-organisation'
connect(email = email, password = password, tenant = tenant)
devices <- get_devices()

if (length(devices) > 0) {
    devices <- devices[[1]]$name
    start <- as.POSIXct("2018-04-25 00:00:00")
    end <- Sys.time()
    observations <- get_data(devices = devices, start = start, end = end)
}


byzheng/RArable documentation built on May 24, 2019, 12:35 a.m.