Skip to contents

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

if (FALSE) { # is.rpi()
is.rpi()
}