https://github.com/mdneuzerling/getsysreqs
Determine system requirements from R packages using the RStudio Package Manager. This is a weekend project, not a real package, so please think twice before using it for anything serious.
https://github.com/mdneuzerling/getsysreqs
Last synced: 5 months ago
JSON representation
Determine system requirements from R packages using the RStudio Package Manager. This is a weekend project, not a real package, so please think twice before using it for anything serious.
- Host: GitHub
- URL: https://github.com/mdneuzerling/getsysreqs
- Owner: mdneuzerling
- License: other
- Created: 2020-10-24T05:53:01.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2020-11-02T23:17:02.000Z (over 4 years ago)
- Last Synced: 2024-08-13T07:14:01.881Z (8 months ago)
- Language: R
- Homepage: https://mdneuzerling.com/post/determining-system-dependencies-for-r-projects/
- Size: 9.77 KB
- Stars: 45
- Watchers: 4
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- jimsghstars - mdneuzerling/getsysreqs - Determine system requirements from R packages using the RStudio Package Manager. This is a weekend project, not a real package, so please think twice before using it for anything serious. (R)
README
# getsysreqs
[](https://github.com/mdneuzerling/getsysreqs/actions)
Determine system requirements from R packages using [the RStudio Package Manager](https://packagemanager.rstudio.com/__api__/swagger/index.html). Query with either a list of packages, or an `renv` lockfile. If using an `renv` lockfile, only CRAN packages will be used.
## Installation
You can install the development version of `sysreqs` from Github with:
``` r
remotes::install_github("mdneuzerling/getsysreqs")
```## Example
Determine system dependencies for both `plumber` and `rmarkdown` on an Ubuntu 20.04 system:
``` r
library(getsysreqs)
get_sysreqs(
c("plumber", "rmarkdown"),
distribution = "ubuntu",
release = "20.04"
)# [1] "libsodium-dev" "libcurl4-openssl-dev" "libssl-dev" "make"
# [5] "libicu-dev" "pandoc"
```Alternatively, pass the file path to an `renv` lockfile, or directory containing `renv.lock`.
## Inspiration
[The `sysreqs` package](https://github.com/r-hub/sysreqs) generates a list of system dependency installation commands from the DESCRIPTION file of an R package. `sysreqs` uses [https://sysreqs.r-hub.io/](https://sysreqs.r-hub.io/) rather than the Rstudio Package Manager.
## Warning
I whipped this up in a few hours without much care. If you wish to use this in a serious project, please think again.