gesistsa/rang

Query also sysreqsdb

Closed this issue · 3 comments

Caveat: We can only query the latest version?

jsonlite::fromJSON(readLines(url("https://sysreqs.r-hub.io/pkg/rJava")), simplifyVector = FALSE)
#> Warning in readLines(url("https://sysreqs.r-hub.io/pkg/rJava")): incomplete
#> final line found on 'https://sysreqs.r-hub.io/pkg/rJava'
#> [[1]]
#> [[1]]$java
#> [[1]]$java$sysreqs
#> [[1]]$java$sysreqs[[1]]
#> [1] "Java"
#> 
#> [[1]]$java$sysreqs[[2]]
#> [1] "java"
#> 
#> 
#> [[1]]$java$platforms
#> [[1]]$java$platforms$DEB
#> [1] "default-jre-headless"
#> 
#> [[1]]$java$platforms$`OSX/brew`
#> NULL
#> 
#> [[1]]$java$platforms$PKGBUILD
#> [1] "jre-openjdk-headless"
#> 
#> [[1]]$java$platforms$RPM
#> [1] "java-1.8.0-openjdk"
#> 
#> 
#> 
#> 
#> [[2]]
#> [[2]]$gnumake
#> [[2]]$gnumake$sysreqs
#> [[2]]$gnumake$sysreqs[[1]]
#> [1] "GNU make"
#> 
#> [[2]]$gnumake$sysreqs[[2]]
#> [1] "GNU Make"
#> 
#> 
#> [[2]]$gnumake$platforms
#> [[2]]$gnumake$platforms$DEB
#> [1] "make"
#> 
#> [[2]]$gnumake$platforms$`OSX/brew`
#> NULL
#> 
#> [[2]]$gnumake$platforms$PKGBUILD
#> [1] "make"
#> 
#> [[2]]$gnumake$platforms$RPM
#> [1] "make"
#> 
#> 
#> 
#> 
#> [[3]]
#> [[3]]$jri
#> [[3]]$jri$sysreqs
#> [1] "JRI"
#> 
#> [[3]]$jri$platforms
#> named list()

Created on 2023-01-15 by the reprex package (v2.0.1)

remotes::system_requirements(package = c("openssl", "rJava", "topicmodels"), os = "ubuntu-20.04")
#> [1] "apt-get install -y libxml2-dev" "apt-get install -y make"       
#> [3] "apt-get install -y default-jdk" "apt-get install -y libgsl0-dev"
#> [5] "apt-get install -y libssl-dev"

Created on 2023-01-16 by the reprex package (v2.0.1)