CRAN Package Check Results for Package cheddar

Last updated on 2019-11-26 00:51:46 CET.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.1-633 12.12 113.99 126.11 ERROR
r-devel-linux-x86_64-debian-gcc 0.1-633 10.07 88.07 98.14 ERROR
r-devel-linux-x86_64-fedora-clang 0.1-633 160.16 OK
r-devel-linux-x86_64-fedora-gcc 0.1-633 160.59 OK
r-devel-windows-ix86+x86_64 0.1-633 26.00 167.00 193.00 OK
r-devel-windows-ix86+x86_64-gcc8 0.1-633 34.00 155.00 189.00 OK
r-patched-linux-x86_64 0.1-633 11.20 115.98 127.18 OK
r-patched-solaris-x86 0.1-633 209.10 OK
r-release-linux-x86_64 0.1-633 10.86 117.45 128.31 OK
r-release-windows-ix86+x86_64 0.1-633 25.00 220.00 245.00 OK
r-release-osx-x86_64 0.1-633 OK
r-oldrel-windows-ix86+x86_64 0.1-633 21.00 146.00 167.00 OK
r-oldrel-osx-x86_64 0.1-633 OK

Check Details

Version: 0.1-633
Check: tests
Result: ERROR
     Running 'community_MN_test.R' [0s/1s]
     Running 'community_collection_test.R' [0s/1s]
     Running 'community_test.R' [0s/1s]
     Running 'community_trophic_links_test.R' [0s/1s]
     Running 'graph_tests.R' [0s/1s]
     Running 'run.R' [1s/2s]
     Running 'util_test.R' [0s/1s]
    Running the tests in 'tests/run.R' failed.
    Complete output:
     > # Runs all of cheddar's tests. You must cd cheddar/tests before running
     > # Rscript run_all.R
     > options(warn=2)
     > library(cheddar)
     >
     > # Data for test plans
     > data(Benguela, BroadstoneStream, ChesapeakeBay, SkipwithPond, TL84, TL86,
     + YthanEstuary, pHWebs, Millstream)
     >
     > # One species. No properties. No trophic links.
     > c1 <- Community(nodes=data.frame(node='S'), properties=list(title='c1'))
     >
     > # One cannibalistic species
     > c2 <- Community(nodes=data.frame(node='S'),
     + trophic.links=cbind(resource='S', consumer='S'),
     + properties=list(title='c2'))
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
     :
     --- package (from environment) ---
     cheddar
     --- call from context ---
     CheckDF(trophic.links, "trophic.links", c(reserved.node.names,
     reserved.properties.names))
     --- call from argument ---
     if (!class(param) %in% c("matrix", "data.frame")) {
     stop(paste("'", param.name, "' must be a matrix or data.frame",
     sep = ""))
     }
     --- R stacktrace ---
     where 1: CheckDF(trophic.links, "trophic.links", c(reserved.node.names,
     reserved.properties.names))
     where 2: Community(nodes = data.frame(node = "S"), trophic.links = cbind(resource = "S",
     consumer = "S"), properties = list(title = "c2"))
    
     --- value of length: 2 type: logical ---
     [1] FALSE TRUE
     --- function from context ---
     function (param, param.name, illegal.names)
     {
     if (!class(param) %in% c("matrix", "data.frame")) {
     stop(paste("'", param.name, "' must be a matrix or data.frame",
     sep = ""))
     }
     if (0 == nrow(param)) {
     stop(paste("'", param.name, "' contains no rows", sep = ""))
     }
     if (is.null(colnames(param))) {
     stop(paste("'", param.name, "' contains no column names",
     sep = ""))
     }
     if (any(duplicated(colnames(param)))) {
     bad <- colnames(param)[duplicated(colnames(param))]
     stop(paste("The names [", paste(bad, collapse = ","),
     "] ", "are duplicated in '", param.name, "'", sep = ""))
     }
     bad <- grep("(resource\\.|consumer\\.).*", colnames(param))
     if (length(bad)) {
     bad <- colnames(param)[bad]
     stop(paste("The names [", paste(bad, collapse = ","),
     "] ", "in '", param.name, "' are not allowed. ",
     "Names must not start with 'resource.' or ", "'consumer.'.",
     sep = ""))
     }
     bad <- colnames(param) %in% illegal.names
     if (any(bad)) {
     stop(paste("'", param.name, "' must not contain the names [",
     paste(colnames(param)[bad], collapse = ","), "]",
     sep = ""))
     }
     return(as.data.frame(param, stringsAsFactors = FALSE, row.names = NULL))
     }
     <bytecode: 0x2c711c8>
     <environment: 0x2dba148>
     --- function search by body ---
     ----------- END OF FAILURE REPORT --------------
     Fatal error: the condition has length > 1
Flavor: r-devel-linux-x86_64-debian-clang

Version: 0.1-633
Check: tests
Result: ERROR
     Running ‘community_MN_test.R’ [0s/1s]
     Running ‘community_collection_test.R’ [0s/1s]
     Running ‘community_test.R’ [1s/1s]
     Running ‘community_trophic_links_test.R’ [0s/1s]
     Running ‘graph_tests.R’ [0s/1s]
     Running ‘run.R’ [1s/2s]
     Running ‘util_test.R’ [0s/0s]
    Running the tests in ‘tests/run.R’ failed.
    Complete output:
     > # Runs all of cheddar's tests. You must cd cheddar/tests before running
     > # Rscript run_all.R
     > options(warn=2)
     > library(cheddar)
     >
     > # Data for test plans
     > data(Benguela, BroadstoneStream, ChesapeakeBay, SkipwithPond, TL84, TL86,
     + YthanEstuary, pHWebs, Millstream)
     >
     > # One species. No properties. No trophic links.
     > c1 <- Community(nodes=data.frame(node='S'), properties=list(title='c1'))
     >
     > # One cannibalistic species
     > c2 <- Community(nodes=data.frame(node='S'),
     + trophic.links=cbind(resource='S', consumer='S'),
     + properties=list(title='c2'))
     ----------- FAILURE REPORT --------------
     --- failure: the condition has length > 1 ---
     --- srcref ---
     :
     --- package (from environment) ---
     cheddar
     --- call from context ---
     CheckDF(trophic.links, "trophic.links", c(reserved.node.names,
     reserved.properties.names))
     --- call from argument ---
     if (!class(param) %in% c("matrix", "data.frame")) {
     stop(paste("'", param.name, "' must be a matrix or data.frame",
     sep = ""))
     }
     --- R stacktrace ---
     where 1: CheckDF(trophic.links, "trophic.links", c(reserved.node.names,
     reserved.properties.names))
     where 2: Community(nodes = data.frame(node = "S"), trophic.links = cbind(resource = "S",
     consumer = "S"), properties = list(title = "c2"))
    
     --- value of length: 2 type: logical ---
     [1] FALSE TRUE
     --- function from context ---
     function (param, param.name, illegal.names)
     {
     if (!class(param) %in% c("matrix", "data.frame")) {
     stop(paste("'", param.name, "' must be a matrix or data.frame",
     sep = ""))
     }
     if (0 == nrow(param)) {
     stop(paste("'", param.name, "' contains no rows", sep = ""))
     }
     if (is.null(colnames(param))) {
     stop(paste("'", param.name, "' contains no column names",
     sep = ""))
     }
     if (any(duplicated(colnames(param)))) {
     bad <- colnames(param)[duplicated(colnames(param))]
     stop(paste("The names [", paste(bad, collapse = ","),
     "] ", "are duplicated in '", param.name, "'", sep = ""))
     }
     bad <- grep("(resource\\.|consumer\\.).*", colnames(param))
     if (length(bad)) {
     bad <- colnames(param)[bad]
     stop(paste("The names [", paste(bad, collapse = ","),
     "] ", "in '", param.name, "' are not allowed. ",
     "Names must not start with 'resource.' or ", "'consumer.'.",
     sep = ""))
     }
     bad <- colnames(param) %in% illegal.names
     if (any(bad)) {
     stop(paste("'", param.name, "' must not contain the names [",
     paste(colnames(param)[bad], collapse = ","), "]",
     sep = ""))
     }
     return(as.data.frame(param, stringsAsFactors = FALSE, row.names = NULL))
     }
     <bytecode: 0x563226819290>
     <environment: 0x56322695d280>
     --- function search by body ---
     ----------- END OF FAILURE REPORT --------------
     Fatal error: the condition has length > 1
Flavor: r-devel-linux-x86_64-debian-gcc