Get Metadata for All KWB-R Github Repos

For all Github repos also includes non R packages

pkgmeta::write_github_repos_json()
#> 
#> Fetching Github metadata for repos of organisation 'KWB-R' at 'https://github.com/KWB-R/' ... ok. (0.84s) 
#> Writting '/Users/runner/work/pkgmeta/pkgmeta/vignettes/github.json' file for 91 repos:
#> - algoliar: https://github.com/KWB-R/algoliar
#> - apps: https://github.com/KWB-R/apps
#> - aquanes.report: https://github.com/KWB-R/aquanes.report
#> - basar.scripts: https://github.com/KWB-R/basar.scripts
#> - dwc.ar4gw: https://github.com/KWB-R/dwc.ar4gw
#> - dwc.wells: https://github.com/KWB-R/dwc.wells
#> - fakin: https://github.com/KWB-R/fakin
#> - fakin.blog: https://github.com/KWB-R/fakin.blog
#> - fakin.doc: https://github.com/KWB-R/fakin.doc
#> - fakin.path.app: https://github.com/KWB-R/fakin.path.app
#> - fhpredict: https://github.com/KWB-R/fhpredict
#> - flusshygiene: https://github.com/KWB-R/flusshygiene
#> - GeoSalz: https://github.com/KWB-R/GeoSalz
#> - HydroServerLite: https://github.com/KWB-R/HydroServerLite
#> - ibathwater: https://github.com/KWB-R/ibathwater
#> - keys.lid: https://github.com/KWB-R/keys.lid
#> - kwb-r.github.io: https://github.com/KWB-R/kwb-r.github.io
#> - kwb.abimo: https://github.com/KWB-R/kwb.abimo
#> - kwb.barplot: https://github.com/KWB-R/kwb.barplot
#> - kwb.base: https://github.com/KWB-R/kwb.base
#> - kwb.budget: https://github.com/KWB-R/kwb.budget
#> - kwb.code: https://github.com/KWB-R/kwb.code
#> - kwb.context: https://github.com/KWB-R/kwb.context
#> - kwb.datetime: https://github.com/KWB-R/kwb.datetime
#> - kwb.db: https://github.com/KWB-R/kwb.db
#> - kwb.default: https://github.com/KWB-R/kwb.default
#> - kwb.demeau: https://github.com/KWB-R/kwb.demeau
#> - kwb.dwa.m150: https://github.com/KWB-R/kwb.dwa.m150
#> - kwb.dwd: https://github.com/KWB-R/kwb.dwd
#> - kwb.dygraph: https://github.com/KWB-R/kwb.dygraph
#> - kwb.en13508.2: https://github.com/KWB-R/kwb.en13508.2
#> - kwb.endnote: https://github.com/KWB-R/kwb.endnote
#> - kwb.event: https://github.com/KWB-R/kwb.event
#> - kwb.fakin: https://github.com/KWB-R/kwb.fakin
#> - kwb.file: https://github.com/KWB-R/kwb.file
#> - kwb.flusshygiene: https://github.com/KWB-R/kwb.flusshygiene
#> - kwb.flusshygiene.app: https://github.com/KWB-R/kwb.flusshygiene.app
#> - kwb.geosalz: https://github.com/KWB-R/kwb.geosalz
#> - kwb.hantush: https://github.com/KWB-R/kwb.hantush
#> - kwb.heatsine: https://github.com/KWB-R/kwb.heatsine
#> - kwb.heatsine.opencpu: https://github.com/KWB-R/kwb.heatsine.opencpu
#> - kwb.infoworks: https://github.com/KWB-R/kwb.infoworks
#> - kwb.iview: https://github.com/KWB-R/kwb.iview
#> - kwb.kuras.db: https://github.com/KWB-R/kwb.kuras.db
#> - kwb.lca: https://github.com/KWB-R/kwb.lca
#> - kwb.logger: https://github.com/KWB-R/kwb.logger
#> - kwb.matomo: https://github.com/KWB-R/kwb.matomo
#> - kwb.ml: https://github.com/KWB-R/kwb.ml
#> - kwb.monitoring: https://github.com/KWB-R/kwb.monitoring
#> - kwb.nextcloud: https://github.com/KWB-R/kwb.nextcloud
#> - kwb.odm: https://github.com/KWB-R/kwb.odm
#> - kwb.odmx: https://github.com/KWB-R/kwb.odmx
#> - kwb.ogre: https://github.com/KWB-R/kwb.ogre
#> - kwb.ogre.model: https://github.com/KWB-R/kwb.ogre.model
#> - kwb.orcid: https://github.com/KWB-R/kwb.orcid
#> - kwb.pathdict: https://github.com/KWB-R/kwb.pathdict
#> - kwb.pilot: https://github.com/KWB-R/kwb.pilot
#> - kwb.pkgbuild: https://github.com/KWB-R/kwb.pkgbuild
#> - kwb.pkgstatus: https://github.com/KWB-R/kwb.pkgstatus
#> - kwb.plot: https://github.com/KWB-R/kwb.plot
#> - kwb.prep: https://github.com/KWB-R/kwb.prep
#> - kwb.pubs: https://github.com/KWB-R/kwb.pubs
#> - kwb.python: https://github.com/KWB-R/kwb.python
#> - kwb.qmra: https://github.com/KWB-R/kwb.qmra
#> - kwb.quantum: https://github.com/KWB-R/kwb.quantum
#> - kwb.read: https://github.com/KWB-R/kwb.read
#> - kwb.readxl: https://github.com/KWB-R/kwb.readxl
#> - kwb.resilience: https://github.com/KWB-R/kwb.resilience
#> - kwb.satellite: https://github.com/KWB-R/kwb.satellite
#> - kwb.site: https://github.com/KWB-R/kwb.site
#> - kwb.svn: https://github.com/KWB-R/kwb.svn
#> - kwb.swmm: https://github.com/KWB-R/kwb.swmm
#> - kwb.test: https://github.com/KWB-R/kwb.test
#> - kwb.twitter: https://github.com/KWB-R/kwb.twitter
#> - kwb.ucode: https://github.com/KWB-R/kwb.ucode
#> - kwb.umberto: https://github.com/KWB-R/kwb.umberto
#> - kwb.utils: https://github.com/KWB-R/kwb.utils
#> - kwb.virtualdub: https://github.com/KWB-R/kwb.virtualdub
#> - kwb.vs2dh: https://github.com/KWB-R/kwb.vs2dh
#> - kwb.wtaq: https://github.com/KWB-R/kwb.wtaq
#> - maxflow: https://github.com/KWB-R/maxflow
#> - pFromGrADS: https://github.com/KWB-R/pFromGrADS
#> - pkgmeta: https://github.com/KWB-R/pkgmeta
#> - qmra.db: https://github.com/KWB-R/qmra.db
#> - r2q: https://github.com/KWB-R/r2q
#> - riverPollution: https://github.com/KWB-R/riverPollution
#> - sema.berlin.utils: https://github.com/KWB-R/sema.berlin.utils
#> - status: https://github.com/KWB-R/status
#> - universe: https://github.com/KWB-R/universe
#> - urbanAnnualRunoff: https://github.com/KWB-R/urbanAnnualRunoff
#> - wasserportal: https://github.com/KWB-R/wasserportal ... ok. (0.42s)

Get Public KWB-R Github Package

Now limit only “public” KWB-R repos which are R packages.

pkgs <- pkgmeta::get_github_packages()

Define paths

# Define paths and resolve placeholders
paths_list <- list(
  root_dir = tempdir(),
  pkglib = "<root_dir>/pkg-lib",
  pkgsource_dir = "<root_dir>/pkg-source",
  pkgnet_dir = "<root_dir>/pkgnet",
  pkgsource_zip_dir = "<pkgsource_dir>/zip",
  pkgsource_unzip_dir = "<pkgsource_dir>/unzip"
)

paths <- kwb.utils::resolve(paths_list, root_dir = tempdir())

Download dependencies

Install Packages

in own library required for “codemetar” and “pkgnet” reports

### On Travis already installed within .travis configuration
### https://github.com/KWB-R/pkgmeta/blob/master/.travis.yml
### with function 
pkgmeta::travis_pkg_install_script()

Source Packages

required for pkgnet “covr”:

Perform Package Meta Analysis

With R package “codemetar”

Generating “codemetar.json” file

pkgs_codemetar <-  pkgmeta::get_github_packages()

codemeta <- pkgmeta::create_pkg_codemeta(
  pkgs, libpath = Sys.getenv("R_LIBS_USER")
)

pkgmeta::write_pkg_codemeta_json(codemeta)

With R package “pkgnet”

Create Reports with "pkgnet