R package R.devices is available on CRAN and can be installed in R as:
install.packages("R.devices")
To install the pre-release version that is available in Git branch develop
on GitHub, use:
remotes::install_github("HenrikBengtsson/R.devices", ref="develop")
This will install the package from source.