tests/testthat/test-fun.R

library(itunesr)
context("getReviews Output DF Check")

test_that("The output dataframe Type is ",{

        expect_equal(class(getReviews(370901726,'gb',1)),"data.frame")
        expect_equal(class(getReviews('297606951','in',2)),"data.frame")

})

Try the itunesr package in your browser

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

itunesr documentation built on May 2, 2019, 10:15 a.m.