Nothing
#' @title Get Event Identifier
#'
#' @description This function returns the identifier of an event or list of events.
#'
#' @param obj An event or a list of events.
#'
#' @return \code{get_id} returns a character string.
#'
#' @examples
#'
#' first_event <- event(id = 'first-event', type = 'FIRST_EVENT', time = Sys.time())
#'
#' get_id(first_event)
#'
#' @importFrom purrr map
#'
#' @export
get_id <- function(obj) UseMethod("get_id")
#' @export
get_id.event <- function(obj) get_header(obj)[["id"]]
#' @export
get_id.event_list <- function(obj){
ids <- purrr::map(event, get_id)
return(ids)
}
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.