tests/testthat/testlistVCs.R

context("Test listVCs")

test_that("List VCs", {
    if(!file.exists('~/rnbn_test.rdata')) skip('login details not found')
    # login
    load('~/rnbn_test.rdata')
    nbnLogin(username = UN_PWD$username, password = UN_PWD$password)
    
    VCs <- listVCs()
    
    expect_true(is.data.frame(VCs))
    expect_true(nrow(VCs)==112)
})

Try the rnbn package in your browser

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

rnbn documentation built on April 6, 2017, 6:29 a.m.