Skip to content

Commit 3161f92

Browse files
REVDEP: Adding revdep checks [ci skip]
1 parent 3bcd8a5 commit 3161f92

File tree

3 files changed

+109
-0
lines changed

3 files changed

+109
-0
lines changed

revdep/README.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# Platform
2+
3+
|field |value |
4+
|:--------|:----------------------------|
5+
|version |R version 3.4.1 (2017-06-30) |
6+
|os |Ubuntu 16.04.3 LTS |
7+
|system |x86_64, linux-gnu |
8+
|ui |X11 |
9+
|language |en |
10+
|collate |en_US.UTF-8 |
11+
|tz |America/Los_Angeles |
12+
|date |2017-09-08 |
13+
14+
# Dependencies
15+
16+
|package |old |new |Δ |
17+
|:-----------------|:------|:----------|:--|
18+
|future.batchtools |0.5.0 |0.5.0-9000 |* |
19+
|assertthat |0.2.0 |0.2.0 | |
20+
|backports |1.1.0 |1.1.0 | |
21+
|base64url |1.2 |1.2 | |
22+
|batchtools |0.9.6 |0.9.6 | |
23+
|brew |1.0-6 |1.0-6 | |
24+
|checkmate |1.8.3 |1.8.3 | |
25+
|data.table |1.10.4 |1.10.4 | |
26+
|digest |0.6.12 |0.6.12 | |
27+
|future |1.6.0 |1.6.0 | |
28+
|globals |0.10.2 |0.10.2 | |
29+
|listenv |0.6.0 |0.6.0 | |
30+
|magrittr |1.5 |1.5 | |
31+
|prettyunits |1.0.2 |1.0.2 | |
32+
|progress |1.1.2 |1.1.2 | |
33+
|R6 |2.2.2 |2.2.2 | |
34+
|rappdirs |0.3.1 |0.3.1 | |
35+
|stringi |1.1.5 |1.1.5 | |
36+
|withr |2.0.0 |2.0.0 | |
37+
38+
# Revdeps
39+
40+
## All (1)
41+
42+
|package |version |error |warning |note |
43+
|:------------------------------|:-------|:-----|:-------|:----|
44+
|[origami](problems.md#origami) |0.8.0 | |2 |1 |
45+

revdep/problems.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# origami
2+
3+
Version: 0.8.0
4+
5+
## In both
6+
7+
* checking CRAN incoming feasibility ... WARNING
8+
```
9+
Maintainer: ‘Jeremy Coyle <[email protected]>’
10+
11+
Insufficient package version (submitted: 0.8.0, existing: 0.8.0)
12+
13+
This build time stamp is over a month old.
14+
```
15+
16+
* checking re-building of vignette outputs ... WARNING
17+
```
18+
Error in re-building vignettes:
19+
...
20+
sh: 1: /home/hb/bin/pandoc: not found
21+
Error: processing vignette 'generalizedCV.Rmd' failed with diagnostics:
22+
error in running command
23+
Execution halted
24+
```
25+
26+
* checking dependencies in R code ... NOTE
27+
```
28+
Namespace in Imports field not imported from: ‘methods’
29+
All declared Imports should be used.
30+
```
31+

revdep/run.R

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
options(warn = 1)
2+
3+
availableCores <- function() {
4+
getenv <- function(name) {
5+
as.integer(Sys.getenv(name, NA_character_))
6+
}
7+
getopt <- function(name) {
8+
as.integer(getOption(name, NA_integer_))
9+
}
10+
if (is.finite(n <- getopt("mc.cores") + 1L)) return(n)
11+
if (is.finite(n <- getopt("Ncpus") + 1L)) return(n)
12+
if (is.finite(n <- getenv("PBS_NUM_PPN"))) return(n)
13+
if (is.finite(n <- getenv("SLURM_CPUS_PER_TASK"))) return(n)
14+
if (is.finite(n <- getenv("NSLOTS"))) return(n)
15+
1L
16+
}
17+
18+
reset <- isTRUE(as.logical(toupper(Sys.getenv("_R_CHECK_REVDEP_RESET_", "FALSE"))))
19+
revdep_framework <- Sys.getenv("_R_CHECK_REVDEP_", "revdepcheck")
20+
if (revdep_framework == "devtools") {
21+
library("devtools")
22+
if (reset) revdep_check_reset()
23+
revdep_check(bioconductor = TRUE, recursive = FALSE, threads = availableCores(), reset = FALSE)
24+
revdep_check_save_summary()
25+
revdep_check_print_problems()
26+
} else if (revdep_framework == "revdepcheck") {
27+
library("revdepcheck")
28+
if (reset) revdep_reset()
29+
revdep_check(bioc = TRUE, num_workers = availableCores(),
30+
timeout = as.difftime(30, units = "mins"), quiet = FALSE)
31+
} else {
32+
stop("Unknown revdep framework: ", revdep_framework)
33+
}

0 commit comments

Comments
 (0)