context("Load File")
library(activPAL)
test_that("file_loading", {
file_data <- activPAL:::pre.process.events.file(paste(system.file("extdata", "", package = "activPAL"),"/Test_Events.csv",sep=""))
expect_equal(nrow(file_data), 179)
expect_equal(length(which(is.na(file_data$time))), 0)
expect_equal(sum(file_data$steps), 2006)
expect_equal(sum(file_data$interval), 86400)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.