returnTime <- function(returnDate = TRUE, returnTime = TRUE){
if (returnDate& returnTime) {
return(Sys.time())
}else if (returnDate){
return(format(Sys.time(), "%d %b %Y") )
}else if (returnTime){
return(format(Sys.time(), "%d %b %Y %H:%M:%S"))
} else{
return("Hello")
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.