Nothing
test_that("Encoding Logical", {
expect_equal(toJSON(TRUE), "[true]");
expect_equal(toJSON(FALSE), "[false]");
expect_equal(toJSON(as.logical(NA)), "[null]");
expect_equal(toJSON(as.logical(NA), na="string"), "[\"NA\"]");
expect_equal(toJSON(c(TRUE, NA, FALSE)), "[true,null,false]");
expect_equal(toJSON(c(TRUE, NA, FALSE), na="string"), "[true,\"NA\",false]");
expect_equal(toJSON(logical()), "[]");
});
test_that("Encoding Logical in Data Frame", {
expect_equal(toJSON(data.frame(foo=TRUE)), "[{\"foo\":true}]");
expect_equal(toJSON(data.frame(foo=FALSE)), "[{\"foo\":false}]");
expect_equal(toJSON(data.frame(foo=as.logical(NA))), "[{}]");
expect_equal(toJSON(data.frame(foo=as.logical(NA)), na="null"), "[{\"foo\":null}]");
expect_equal(toJSON(data.frame(foo=as.logical(NA)), na="string"), "[{\"foo\":\"NA\"}]");
expect_equal(toJSON(data.frame(foo=c(TRUE, NA, FALSE))), "[{\"foo\":true},{},{\"foo\":false}]");
expect_equal(toJSON(data.frame(foo=logical())), "[]");
});
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.