context("mylogl")
test_that("works for data2",{
theta <- pi
func2 <- function(theta,x){
sum(dcauchy(x, location = theta, log = TRUE))
}
a <- mylogl(data2, func2, interval = c(-10,10))
b <- 3.02
expect_true(abs(a-b)<.01)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.