Skip to content

Commit

Permalink
use docker rchk
Browse files Browse the repository at this point in the history
  • Loading branch information
kingaa committed Apr 17, 2024
1 parent e5a5927 commit f575667
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 78 deletions.
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ BUILD\.md$
\.github
^\.travis\.yml$
^codecov\.yml$
^rchk\.out$
^.*\.Rproj$
^\.Rproj\.user$
\.Rprofile
Expand Down
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
\.tests
\.Rhistory
\.Rproj.user
rchk\.out
*.tar.gz
*.tgz
*.zip
Expand All @@ -20,9 +21,10 @@
*.pdf
*.sif
/scripts
check
lib
library
check
rchk
repo
wiki
www
Expand Down
2 changes: 2 additions & 0 deletions BUILD.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ The key targets are:
- `revdeps`: causes checks of reverse-dependent packages to run.
The outputs are stored under the `revdep` directory.
- `rchk`: runs Kalibera's `rchk` utility.
This uses `docker` to download and run a Docker container.
The stdout for this is stored in `rchk.out`.

- `session`: installs the package locally and then runs an **R** session for interactive testing.
This session is controlled by the `RSESSION` environment variable.
Expand Down
14 changes: 0 additions & 14 deletions rchk/Makefile

This file was deleted.

60 changes: 0 additions & 60 deletions rchk/rchk.out

This file was deleted.

6 changes: 3 additions & 3 deletions rules.mk
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,9 @@ session debug rsession: .session
rchk: .rchk

.rchk: .dist
mkdir -p rchk
$(CP) $(TARBALL) rchk
make -C rchk
docker run -v $(PWD)/rchk:/rchk/packages kalibera/rchk:latest /rchk/packages/$(TARBALL) | tee rchk.out

revdeps: .dist
mkdir -p revdep
Expand Down Expand Up @@ -224,10 +225,9 @@ clean:
$(MAKE) -C inst/doc clean
$(MAKE) -C tests clean
$(MAKE) -C revdep clean
$(MAKE) -C rchk clean
$(RM) .dist

fresh: clean
$(RM) .headers .includes .NEWS .instdocs
$(RM) .install .roxy .source .testsource .roxy .tests
$(RM) -r library
$(RM) -r library rchk

0 comments on commit f575667

Please sign in to comment.