tests/testthat/test-other.R

# Basic Pulls using Validated API key
test_that("Test small sample of prices", {

  ### All tests with API key should be skipped on CRAN
  skip_on_cran()

  fmpc_set_token(readRDS('/home/rstudio/Secure/fmp.rds'))


  symbs = fmpc_cots_symbols()
  expect_true(nrow(symbs) >= 30 & ncol(symbs)>=2)

  gold = fmpc_cots_data('gc')
  expect_true(nrow(gold) >= 30 & ncol(gold)>=100)

})

Try the fmpcloudr package in your browser

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

fmpcloudr documentation built on March 2, 2021, 1:06 a.m.