Skip to content

Commit 4c9f3ba

Browse files
committed
Makefile: tweak check of reverse dependencies
Signed-off-by: Stefan Widgren <[email protected]>
1 parent a40af2c commit 4c9f3ba

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

Makefile

+12-12
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,16 @@ check:
3131

3232
# Check reverse dependencies
3333
#
34-
# 1) Install packages (in ./revdep/lib) to check reverse dependencies.
35-
# 2) Check reverse dependencies using 'R CMD check'.
36-
# 3) Collect results from '00check.log' files.
34+
# 1) Install packages (in ../revdep/lib) to check the reverse dependencies.
35+
# 2) Check the reverse dependencies using 'R CMD check'.
36+
# 3) Collect results from the '00check.log' files.
3737
revdep: revdep_install revdep_check revdep_results
3838

3939
# Install packages to check reverse dependencies
4040
revdep_install: clean
41-
mkdir -p revdep/lib
42-
cd .. && R CMD INSTALL --library=$(PKG_NAME)/revdep/lib $(PKG_NAME)
43-
R_LIBS_USER=./revdep/lib Rscript --vanilla \
41+
mkdir -p ../revdep/lib
42+
cd .. && R CMD INSTALL --library=revdep/lib $(PKG_NAME)
43+
R_LIBS_USER=../revdep/lib Rscript --vanilla \
4444
-e "options(repos = c(CRAN='https://cran.r-project.org'))" \
4545
-e "pkg <- tools::package_dependencies('$(PKG_NAME)', which = 'all', reverse = TRUE)" \
4646
-e "pkg <- as.character(unlist(pkg))" \
@@ -51,14 +51,14 @@ revdep_install: clean
5151
-e " biocLite('BiocInstaller')" \
5252
-e "}" \
5353
-e "install.packages(pkg, dependencies = TRUE)" \
54-
-e "download.packages(pkg, destdir = 'revdep')"
54+
-e "download.packages(pkg, destdir = '../revdep')"
5555

5656
# Check reverse dependencies with 'R CMD check'
5757
revdep_check:
58-
$(foreach var,$(wildcard revdep/*.tar.gz),R_LIBS_USER=./revdep/lib \
58+
$(foreach var,$(wildcard ../revdep/*.tar.gz),R_LIBS_USER=../revdep/lib \
5959
_R_CHECK_CRAN_INCOMING_=FALSE R --vanilla CMD check --as-cran \
60-
--no-stop-on-test-error --output=revdep $(var) \
61-
| tee --append revdep/00revdep.log;)
60+
--no-stop-on-test-error --output=../revdep $(var) \
61+
| tee --append ../revdep/00revdep.log;)
6262

6363
# Collect results from checking reverse dependencies
6464
revdep_results:
@@ -67,7 +67,7 @@ revdep_results:
6767
-e "pkg <- tools::package_dependencies('$(PKG_NAME)', which = 'all', reverse = TRUE)" \
6868
-e "pkg <- as.character(unlist(pkg))" \
6969
-e "results <- do.call('rbind', lapply(pkg, function(x) {" \
70-
-e " filename <- paste0('revdep/', x, '.Rcheck/00check.log')" \
70+
-e " filename <- paste0('../revdep/', x, '.Rcheck/00check.log')" \
7171
-e " if (file.exists(filename)) {" \
7272
-e " lines <- readLines(filename)" \
7373
-e " status <- sub('^Status: ', '', lines[grep('^Status: ', lines)])" \
@@ -147,7 +147,7 @@ configure: configure.ac
147147

148148
clean:
149149
./cleanup
150-
-rm -rf revdep
150+
-rm -rf ../revdep
151151

152152
.PHONY: all readme install roxygen sync_libgit2 Makevars check check_gctorture \
153153
check_valgrind revdep revdep_install revdep_check revdep_results valgrind \

0 commit comments

Comments
 (0)