pacman::p_load("testthat","popgen.stats")
context("no_scientific function")
test_that("Converted away from scientific notation correctly",{
x<-2.4e8
test<-no_scientific(x)
expect_equal(test,format(x,scientific = F,trim = T))
x<-0
test<-no_scientific(x)
expect_equal(test,format(x,scientific = F,trim = T))
x<--6.7e-10
test<-no_scientific(x)
expect_equal(test,format(x,scientific = F,trim = T))
} )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.