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 Jan. 10, 2023, 1:07 a.m.