Package 'distro'

Title: Linux Distribution Properties
Description: In order to provide unified access to Linux distribution details in R, this package wraps the various files and commands that may exist on a system. It is similar in spirit to the 'lsb_release' command and the 'Python' package of the same name.
Authors: Neal Richardson [aut, cre]
Maintainer: Neal Richardson <[email protected]>
License: Apache License (>= 2.0)
Version: 0.1.0
Built: 2024-11-08 03:57:09 UTC
Source: https://github.com/nealrichardson/distro

Help Index


Get info on the system's Linux distribution

Description

Get info on the system's Linux distribution

Usage

distro()

Value

On Linux distributions, it returns a list of four elements:

  • id, e.g. "ubuntu", "debian"

  • version, e.g. "18.04", "7.7.1908"

  • codename, e.g. "bionic", "bullseye"

  • short_version, which for Ubuntu is the yy.mm version ("18.04") but for all other distributions is the major version number only ("7")

Not all fields are guaranteed to be defined on all systems. On non-Linux systems, the function returns NULL.

Examples

distro()