tests/testthat/test_check.R

test_that("checkTCGA() function works properly", {
    expect_equal( length(checkTCGA('Dates')) >= 60, T )
    expect_is( checkTCGA('Dates'), "character" )
    expect_equal( "2015-06-01" %in% checkTCGA('Dates'), T )
    #expect_error( checkTCGA('DataSets', 'OV', checkTCGA('Dates')[6] ) )
    expect_equal( nrow(checkTCGA('DataSets', 'OV', "2015-06-01" )) == 42, T )
    expect_is( checkTCGA('DataSets', 'OV', tail(checkTCGA('Dates'),2)[1]), "data.frame" )
})

Try the RTCGA package in your browser

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

RTCGA documentation built on Nov. 8, 2020, 5:11 p.m.