Nothing
context("nyctaxi")
## TODO: Rename context
## TODO: Add more tests
test_that("etl nyctaxi", {
mainDir <- "~/Desktop/nyctaxi/"
if (dir.exists(file.path(mainDir)) == TRUE) {
taxi <- etl("nyctaxi")
expect_s3_class(taxi, c("etl_nyctaxi", "etl", "src_sqlite", "src_sql", "src"))
expect_message(taxi %>% etl_extract(years = 2016, months = 1, types = "green"), "Extracting")
}
})
test_that("mysql works", {
if (require(RMySQL) && mysqlHasDefault()) {
db <- src_mysql_cnf()
expect_s3_class(db, "src_dbi")
taxi <- etl("nyctaxi", db)
expect_s3_class(taxi,c("etl_nyctaxi", "etl", "src_mysql", "src_sql", "src"))
}
})
test_that("get_file_path works", {
expect_equal(nrow(get_file_path(2017, 1:6, "yellow", "~/")), 6)
})
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.