Type: | Package |
Title: | Linux Distribution Properties |
Version: | 0.1.0 |
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. |
License: | Apache License (≥ 2.0) |
Encoding: | UTF-8 |
LazyData: | true |
Suggests: | testthat (≥ 2.1.0) |
RoxygenNote: | 7.1.0.9000 |
NeedsCompilation: | no |
Packaged: | 2020-11-03 19:37:29 UTC; enpiar |
Author: | Neal Richardson [aut, cre] |
Maintainer: | Neal Richardson <neal.p.richardson@gmail.com> |
Repository: | CRAN |
Date/Publication: | 2020-11-09 09:50:02 UTC |
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 theyy.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()