Skip to content
Prev 54145 / 63421 Next

CRAN check errors: drake 4.1.0 on r-devel-linux-x86_64-debian-clang

Hello,


The CRAN checks for the drake package (4.1.0) fail for r-devel-linux-x86_64-debian-clang. This happened right when crayon 1.3.4 was released, but I suspect the problem is not with crayon or drake, but with base R-devel. I cannot reproduce the error myself, but I have copied a minimal working example (MWE) below that should theoretically isolate the problem. 

`find_namespaced_functions()` is an internal function in drake that should work as long as base R is working, and all the failures appear to trace back there. Below the MWE is part of an existing email thread on this.

Will


# Walk through the body of f
# and find functions called with `::` or `:::`.
find_namespaced_functions <- function(f, found = character(0)){
  if (is.function(f)){
    return(find_namespaced_functions(body(f), found))
  } else if (is.call(f) && deparse(f[[1]]) %in% c("::", ":::")){
    found <- c(found, deparse(f))
  } else if (is.recursive(f)){
    v <- lapply(as.list(f), find_namespaced_functions, found)
    found <- unique(c(found, unlist(v)))
  }
  found
}

f <- function(x){
  digest::digest("Should be found.")
  digest:::digest("Should also be found.")
  digest("Should NOT be found.")
}

print(find_namespaced_functions(f))
# Expected output:
# [1] "digest::digest"  "digest:::digest"


From: Will Landau 
Sent: Saturday, September 16, 2017 11:16 PM
To: 'G?bor Cs?rdi' <csardi.gabor at gmail.com>; 'ligges at statistik.tu-dortmund.de' <ligges at statistik.tu-dortmund.de>
Subject: RE: [EXTERNAL] Re: CRAN submission crayon 1.3.4

Gabor and Uwe,


Thank you for promptly notifying me. I saw the https://www.r-project.org/nosvn/R.check/r-devel-linux-x86_64-debian-clang/drake-00check.html, and I could not reproduce it either. I tried:

? Ubuntu 17.04 with gcc (though drake has no complied code)
? a fresh copy of 64-bit R-devel r73293 (2017-09-16)
? the latest version of all required packages, including crayon 1.3.4 
? `R CMD check --as-cran drake_4.1.0.tar.gz` with a https://cran.r-project.org/src/contrib/drake_4.1.0.tar.gz