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
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.
distro is not yet on CRAN, but you can install it with:
There is only one public function in the package:
distro::distro() # $id #  "ubuntu" # # $version #  "16.04" # # $codename #  "xenial" # # $short_version #  "16.04"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.