is_windows <- function() {
.Platform$OS.type == "windows"
}
is_mac <- function() {
Sys.info()[["sysname"]] == "Darwin"
}
is_unix <- function() {
.Platform$OS.type == "unix"
}
is_solaris <- function() {
Sys.info()[["sysname"]] == "SunOS"
}
is_sparc <- function() {
info <- Sys.info()
all(
info[["sysname"]] == "SunOS",
info[["machine"]] != "i86pc"
)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.