tests/testthat/test-nneo_wrangle.R

context("nneo_wrangle")

test_that("nneo_data works as expected", {
  skip_on_cran()

  aa <- nneo_wrangle(site_code="BART", time_start="2016-06-20",
                     time_end="2016-09-21", data_var="radiation")

  expect_is(aa, 'tbl_df')
  expect_is(aa$difRadMean.000.060, 'numeric')
  expect_is(aa$startDateTime, 'character')

})

Try the nneo package in your browser

Any scripts or data that you put into this service are public.

nneo documentation built on June 20, 2017, 9:08 a.m.