R/platform.R

Defines functions is.linux is.mac is.unix is.windows

is.windows <- function() {
  .Platform$OS.type == "windows"
}

is.unix <- function() {
  .Platform$OS.type == "unix"
}

is.mac <- function() {
  Sys.info()["sysname"] == "Darwin"
}

is.linux <- function() {
  Sys.info()["sysname"] == "Linux"
}

Try the packrat package in your browser

Any scripts or data that you put into this service are public.

packrat documentation built on Sept. 8, 2023, 5:44 p.m.