Nothing
# tests for solr_search fxn in solr
context("solr_search")
url <- 'http://api.plos.org/search'
a <- solr_search(q='*:*', rows=2, fl='id', base=url, verbose=FALSE)
b <- solr_search(q='title:"ecology" AND body:"cell"', fl='title', rows=5, base=url, verbose=FALSE)
test_that("solr_search returns the correct dimensions in the data.frame", {
expect_that(length(a), equals(1))
expect_that(length(b), equals(1))
})
test_that("solr_search returns the correct classes", {
expect_is(a, "data.frame")
expect_is(b, "data.frame")
})
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.