Nothing
#' A helper function that ensures data and metadata are compatible (same key)
#' @noRd
check_conform <- function(x, metadata = NULL){
if(!data.table::is.data.table(x))
stop("x is not a data.table!")
if(is.null(metadata)){
if(!is.behavr(x))
stop("x is not a behavr object.
When metadata is not provided, x should be a behavr!")
metadata <- meta(x)
}
if(is.null(metadata))
stop("no metadata!")
if(!data.table::is.data.table(metadata))
stop("metadata is not a data.table!")
k_x <- data.table::key(x)
k_m <- data.table::key(metadata)
if(is.null(k_x))
stop("x has no key")
if(is.null(k_m))
stop("metadata has no key")
if(!identical(k_x, k_m))
stop("x and metadata have different keys. The keys mus be columns with the same name!")
}
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.