Skip to content
Prev 2666 / 12125 Next

[R-pkg-devel] some notes

On 2018-04-24 12:23, Uwe Ligges wrote:
????? I very much appreciate your time and effort in maintaining CRAN.? 
The precise code used is as follows:


CRAN <- function (CRAN_pattern, n_R_CHECK4CRAN){
 ??? gete <- Sys.getenv()
 ??? ngete <- names(gete)
 ??? i <- seq(along = gete)
 ??? if (missing(CRAN_pattern)) {
 ??????? if ("_CRAN_pattern_" %in% ngete) {
 ??????????? CRAN_pattern <- gete["_CRAN_pattern_"]
 ??????? }
 ??????? else CRAN_pattern <- "^_R_"
 ??? }
 ??? if (missing(n_R_CHECK4CRAN)) {
 ??????? if ("_n_R_CHECK4CRAN_" %in% ngete) {
 ??????????? n_R_CHECK4CRAN <- as.numeric(gete["_n_R_CHECK4CRAN_"])
 ??????? }
 ??????? else n_R_CHECK4CRAN <- 5
 ??? }
 ??? for (pati in CRAN_pattern) i <- i[grep(pati, ngete[i])]
 ??? cran. <- (length(i) >= n_R_CHECK4CRAN)
 ??? attr(cran., "Sys.getenv") <- gete
 ??? attr(cran., "matches") <- i
 ??? cran.
}


 ????? This seems to do what I think we both wanted:? not run the longer 
examples on CRAN but still allow them to be run elsewhere. If you want 
something different here, Uwe, please tell me what you want.? If it's 
reasonably easy to implement, I will.


 ????? FYI, I just checked the "CRAN Package Check Results for Package 
fda":? It returned "OK" on 8 of the 12 "flavors", but returned "ERROR" 
on the other four.? NONE of those errors were for excess time.? Instead, 
they were for <<no applicable method for 'knots' applied to an object of 
class "fd">>. ? The NAMESPACE file for "fda" includes both 
"export(knots.fd)" and "S3method(knots, fd)".


 ????? What should I do about this intermittent error?


 ????? Thanks,
 ????? Spencer