test_that("Load stock price works", {
data <- load_stock_price(ticker = "SPIUSGKL.CO")
expect_equal(names(data), c("Date", "Open", "High", "Low", "Close", "Adjusted", "Volume"))
expect_equal(nrow(data), 1)
expect_true(data$Close > 0)
data <- load_stock_price(ticker = "0P00000KRH.CO")
expect_equal(names(data), c("Date", "Open", "High", "Low", "Close", "Adjusted", "Volume"))
expect_equal(nrow(data), 1)
expect_true(data$Close > 0)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.