is.rpi: Confirm this code is running on a Raspberry Pi

View source: R/is_rpi.R

is.rpiR Documentation

Confirm this code is running on a Raspberry Pi

Description

Returns TRUE if this code is running on a Raspberry Pi

Usage

is.rpi(tellme = FALSE)

Arguments

tellme

if TRUE the is.rpi will return the device-tree/model. This typically looks like "Raspberry Pi 5 Model B Rev 1.0"

Value

TRUE if running on a Raspberry Pi. if tellme = TRUE, return the model string

Examples


is.rpi()


mnr/rpigpior documentation built on May 22, 2024, 8:39 p.m.