#' Return the name of the current platform
#'
#' Returns the name of the current platform
#' @export
#' @examples
#' whatplatform()
whatplatform <- function () {
if(Sys.info()[['sysname']]=='Darwin') {mysys='mac'} else {mysys='win'}
if(mysys=='win') {loadfonts(device='win',quiet=TRUE)}
return(mysys)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.