tests/testthat/test.stepping.cadence.bubble.chart.R

context("Cadence Histogram")
library(activPAL)

test_that("generate_cadence_histograme", {

  input_directory <- paste(system.file("extdata", "", package = "activPAL"),"/",sep="")
  output_directory <- paste(tempdir(),"/",sep="")

  daily.stepping.activity.bubble.chart(input_directory,output_directory)

  file_data <- list.files(output_directory,"Test__bubble_chart.png")
  expect_equal(length(file_data), 1)
  expect_equal(file_data, "Test__bubble_chart.png")
  file.remove(paste(output_directory,file_data,sep=""))

})

Try the activPAL package in your browser

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

activPAL documentation built on July 18, 2019, 5:03 p.m.