#' @title Warning Messages
#' @description Prints all messages from previous functions and deletes them afterwards.
#'
#' @export
#' @examples
#' #displays and then deletes the messages from the function executions
#' display_messages()
display_messages<-function() {
if(exists("messages")){
return(messages)
rm(messages, envir = .GlobalEnv)
} else {
print("No messages.")
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.