The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.

distro

R build status

The goal of distro is to provide a standardized interface to version and other facts about the current system’s Linux distribution. It is similar in spirit (though far more limited in scope) to the Python distro package.

Different Linux distributions and versions record version information in a number of different files and commands. The lsb_release command line utility standardizes some of the access to this information, but it is not guaranteed to be installed. This package draws from the various possible locations of version information and provides a single function for querying them.

Installation

To install distro from CRAN,

install.packages("distro")

You can install a development version with:

remotes::install_github("nealrichardson/distro")

Example

There is only one public function in the package:

distro::distro()

# $id
# [1] "ubuntu"
#
# $version
# [1] "16.04"
#
# $codename
# [1] "xenial"
#
# $short_version
# [1] "16.04"

Contributing

Does distro fail to produce the expected result on your system? We’ve tried to make it easy to extend the tests to accommodate new distributions and ways of expressing distribution information. That way, you can add information from your system to the tests as a way of setting up a minimum reproducible example.

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.