Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/HenrikBengtsson/revdepcheck.extras
R package: revdepcheck.extras - Reverse-Dependency Checks from the Command Line (CLI)
https://github.com/HenrikBengtsson/revdepcheck.extras
cli package r
Last synced: about 1 month ago
JSON representation
R package: revdepcheck.extras - Reverse-Dependency Checks from the Command Line (CLI)
- Host: GitHub
- URL: https://github.com/HenrikBengtsson/revdepcheck.extras
- Owner: HenrikBengtsson
- Created: 2019-06-14T04:43:57.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2024-07-20T15:03:25.000Z (2 months ago)
- Last Synced: 2024-07-21T16:27:56.771Z (2 months ago)
- Topics: cli, package, r
- Language: R
- Homepage: https://github.com/HenrikBengtsson/revdepcheck.extras
- Size: 129 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- jimsghstars - HenrikBengtsson/revdepcheck.extras - R package: revdepcheck.extras - Reverse-Dependency Checks from the Command Line (CLI) (R)
README
# revdepcheck.extras - Reverse-Dependency Checks from the Command Line (CLI)
This package provides additional functions to be used with the [revdepcheck] package. It also provide a command-line interface (CLI) for running reverse-dependency package checks directly from the command line.
## Examples
### From R
Check _all_ reverse dependencies running eight checks in parallel:
```r
> options(revdepcheck.num_workers = 8)
> revdepcheck.extras::revdep_check()
```Check a _specific set_ of reverse-dependency packages:
```r
> library(revdepcheck.extras)
> revdep_init()
> revdep_add(packages = c("pkgA", "pkgB", "pkgQ"))
> revdep_add(packages = revdep_children())
> revdep_add(packages = c(revdep_children(), revdep_grandchildren()))
> revdep_todo() ## list packages to be tested
> revdep_check()
> revdep_report(all = TRUE) ## regenerate report with more details
```### From the shell
```sh
$ export R_REVDEPCHECK_NUM_WORKERS=8
$ Rscript -e revdepcheck.extras::run
$ Rscript -e revdepcheck.extras::run --help
$ Rscript -e revdepcheck.extras::run --init
$ Rscript -e revdepcheck.extras::run --reset
$ Rscript -e revdepcheck.extras::run --add pkgA pkgB pkgQ
$ Rscript -e revdepcheck.extras::run --add pkgA,pkgB,pkgQ
$ Rscript -e revdepcheck.extras::run --add-children
$ Rscript -e revdepcheck.extras::run --add-grandchildren
$ Rscript -e revdepcheck.extras::run --todo
$ Rscript -e revdepcheck.extras::run --preinstall-children
```## Installation
To install this package, call:
```sh
remotes::install_github("HenrikBengtsson/revdepcheck.extras")
```## Disclaimer
I have no intention of submitting this to CRAN or providing end-user support
for it. I use it for revdepcheck:ing my own packages on a HPC system where
I for instance need to pre-populate the [crancache] cache before running
revdep checks as a job on compute nodes without internet access.[crancache]: https://github.com/r-lib/crancache
[revdepcheck]: https://github.com/r-lib/revdepcheck