Last updated on 2026-03-04 22:54:47 CET.
| Flavor | Version | Tinstall | Tcheck | Ttotal | Status | Flags |
|---|---|---|---|---|---|---|
| r-devel-linux-x86_64-debian-clang | 3.18.20 | 16.99 | 110.66 | 127.65 | OK | |
| r-devel-linux-x86_64-debian-gcc | 3.18.20 | 11.52 | 72.84 | 84.36 | ERROR | |
| r-devel-linux-x86_64-fedora-clang | 3.18.20 | 32.00 | 178.37 | 210.37 | OK | |
| r-devel-linux-x86_64-fedora-gcc | 3.18.20 | 28.00 | 171.08 | 199.08 | OK | |
| r-devel-macos-arm64 | 3.18.20 | 5.00 | 28.00 | 33.00 | OK | |
| r-devel-windows-x86_64 | 3.18.20 | 19.00 | 112.00 | 131.00 | OK | |
| r-patched-linux-x86_64 | 3.18.20 | 15.98 | 103.13 | 119.11 | OK | |
| r-release-linux-x86_64 | 3.18.20 | 15.65 | 103.85 | 119.50 | OK | |
| r-release-macos-arm64 | 3.18.20 | OK | ||||
| r-release-macos-x86_64 | 3.18.20 | 12.00 | 108.00 | 120.00 | OK | |
| r-release-windows-x86_64 | 3.18.20 | 19.00 | 113.00 | 132.00 | OK | |
| r-oldrel-macos-arm64 | 3.18.20 | OK | ||||
| r-oldrel-macos-x86_64 | 3.18.20 | 12.00 | 136.00 | 148.00 | OK | |
| r-oldrel-windows-x86_64 | 3.18.20 | 26.00 | 140.00 | 166.00 | OK |
Version: 3.18.20
Check: examples
Result: ERROR
Running examples in ‘BMA-Ex.R’ failed
The error most likely occurred in:
> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: iBMA
> ### Title: Iterated Bayesian Model Averaging variable selection for
> ### generalized linear models, linear models or survival models.
> ### Aliases: iBMA iBMA.glm iBMA.bicreg iBMA.surv iBMA.glm.data.frame
> ### iBMA.glm.matrix iBMA.glm.iBMA.intermediate.glm iBMA.bicreg.data.frame
> ### iBMA.bicreg.matrix iBMA.bicreg.iBMA.intermediate.bicreg
> ### iBMA.surv.data.frame iBMA.surv.matrix
> ### iBMA.surv.iBMA.intermediate.surv
> ### Keywords: regression survival
>
> ### ** Examples
>
>
> ## Not run:
> ##D ############ iBMA.glm
> ##D library("MASS")
> ##D data(birthwt)
> ##D y<- birthwt$lo
> ##D x<- data.frame(birthwt[,-1])
> ##D x$race<- as.factor(x$race)
> ##D x$ht<- (x$ht>=1)+0
> ##D x<- x[,-9]
> ##D x$smoke <- as.factor(x$smoke)
> ##D x$ptl<- as.factor(x$ptl)
> ##D x$ht <- as.factor(x$ht)
> ##D x$ui <- as.factor(x$ui)
> ##D
> ##D ### add 41 columns of noise
> ##D noise<- matrix(rnorm(41*nrow(x)), ncol=41)
> ##D colnames(noise)<- paste('noise', 1:41, sep='')
> ##D x<- cbind(x, noise)
> ##D
> ##D iBMA.glm.out<- iBMA.glm( x, y, glm.family="binomial",
> ##D factor.type=FALSE, verbose = TRUE,
> ##D thresProbne0 = 5 )
> ##D summary(iBMA.glm.out)
> ## End(Not run)
>
> ## Not run:
> ##D ################## iBMA.surv
> ##D library(survival)
> ##D data(cancer)
> ##D
> ##D surv.t<- veteran$time
> ##D cens<- veteran$status
> ##D veteran$time<- NULL
> ##D veteran$status<- NULL
> ##D lvet<- nrow(veteran)
> ##D invlogit<- function(x) exp(x)/(1+exp(x))
> ##D # generate random noise, 34 uniform variables
> ##D # and 10 factors each with 4 levels
> ##D X <- data.frame(matrix(runif(lvet*34), ncol=34),
> ##D matrix(letters[1:6][(rbinom(10*lvet, 3, .5))+1],
> ##D ncol = 10))
> ##D colnames(X) <- c(paste("u",1:34, sep=""),paste("C",1:10, sep=""))
> ##D for(i in 35:44) X[,i] <- as.factor(X[,i])
> ##D veteran_plus_noise<- cbind(veteran, X)
> ##D
> ##D
> ##D test.iBMA.surv <- iBMA.surv(x = veteran_plus_noise,
> ##D surv.t = surv.t, cens = cens,
> ##D thresProbne0 = 5, maxNvar = 30,
> ##D factor.type = TRUE, verbose = TRUE,
> ##D nIter = 100)
> ##D
> ##D test.iBMA.surv
> ##D summary(test.iBMA.surv)
> ## End(Not run)
>
> ## Not run:
> ##D ############ iBMA.bicreg ... degenerate example
> ##D library(MASS)
> ##D data(UScrime)
> ##D UScrime$M<- log(UScrime$M); UScrime$Ed<- log(UScrime$Ed);
> ##D UScrime$Po1<- log(UScrime$Po1); UScrime$Po2<- log(UScrime$Po2);
> ##D UScrime$LF<- log(UScrime$LF); UScrime$M.F<- log(UScrime$M.F)
> ##D UScrime$Pop<- log(UScrime$Pop); UScrime$NW<- log(UScrime$NW);
> ##D UScrime$U1<- log(UScrime$U1); UScrime$U2<- log(UScrime$U2);
> ##D UScrime$GDP<- log(UScrime$GDP); UScrime$Ineq<- log(UScrime$Ineq)
> ##D UScrime$Prob<- log(UScrime$Prob); UScrime$Time<- log(UScrime$Time)
> ##D noise<- matrix(rnorm(35*nrow(UScrime)), ncol=35)
> ##D colnames(noise)<- paste('noise', 1:35, sep='')
> ##D UScrime_plus_noise<- cbind(UScrime, noise)
> ##D
> ##D y<- UScrime_plus_noise$y
> ##D UScrime_plus_noise$y <- NULL
> ##D
> ##D # run 2 iterations and examine results
> ##D iBMA.bicreg.crime <- iBMA.bicreg( x = UScrime_plus_noise,
> ##D Y = y, thresProbne0 = 5, verbose = TRUE, maxNvar = 30, nIter = 2)
> ##D summary(iBMA.bicreg.crime)
> ##D orderplot(iBMA.bicreg.crime)
> ## End(Not run)
>
> ## Not run:
> ##D # run from current state until completion
> ##D iBMA.bicreg.crime <- iBMA.bicreg( iBMA.bicreg.crime, nIter = 200)
> ##D summary(iBMA.bicreg.crime)
> ##D orderplot(iBMA.bicreg.crime)
> ## End(Not run)
>
> set.seed(0)
> x <- matrix( rnorm(50*30), 50, 30)
> lp <- apply( x[,1:5], 1, sum)
> iBMA.bicreg.ex <- iBMA.bicreg( x = x, Y = lp, thresProbne0 = 5, maxNvar = 20)
>
> explp <- exp(lp)
> prob <- explp/(1+explp)
> y=rbinom(n=length(prob),prob=prob,size=1)
> iBMA.glm.ex <- iBMA.glm( x = x, Y = y, glm.family = "binomial",
+ factor.type = FALSE, thresProbne0 = 5, maxNvar = 20)
ERROR(s) during compilation: source code errors or compiler configuration errors!
make cmd is
make -f '/home/hornik/tmp/R.check/r-devel-gcc/Work/build/etc/Makeconf' -f '/home/hornik/tmp/R.check/r-devel-gcc/Work/build/share/make/shlib.mk' -f '/home/hornik/.R/Makevars-gcc' SHLIB='file20ee3140adab6b.so' OBJECTS='file20ee3140adab6b.o'
make would use
make[1]: Entering directory '/tmp/RtmpzKrwxT'
gcc-15 -I"/home/hornik/tmp/R.check/r-devel-gcc/Work/build/include" -DNDEBUG -DR_NO_REMAP -I/usr/local/include -D_FORTIFY_SOURCE=3 -fpic -g -O2 -Wall -Wstrict-prototypes -pedantic -mtune=native -c file20ee3140adab6b.c -o file20ee3140adab6b.o
if test "zfile20ee3140adab6b.o" != "z"; then \
echo gcc-15 -shared -L"/home/hornik/tmp/R.check/r-devel-gcc/Work/build/lib" -Wl,-O1 -o file20ee3140adab6b.so file20ee3140adab6b.o -L"/home/hornik/tmp/R.check/r-devel-gcc/Work/build/lib" -lR; \
gcc-15 -shared -L"/home/hornik/tmp/R.check/r-devel-gcc/Work/build/lib" -Wl,-O1 -o file20ee3140adab6b.so file20ee3140adab6b.o -L"/home/hornik/tmp/R.check/r-devel-gcc/Work/build/lib" -lR; \
fi
make[1]: Leaving directory '/tmp/RtmpzKrwxT'
Program source:
1: #include <R.h>
2: #include <Rdefines.h>
3: #include <R_ext/Error.h>
4:
5:
6: /* This is taken from envir.c in the R 2.15.1 source
7: https://github.com/SurajGupta/r-source/blob/master/src/main/envir.c
8: */
9: #define FRAME_LOCK_MASK (1<<14)
10: #define FRAME_IS_LOCKED(e) (ENVFLAGS(e) & FRAME_LOCK_MASK)
11: #define UNLOCK_FRAME(e) SET_ENVFLAGS(e, ENVFLAGS(e) & (~ FRAME_LOCK_MASK))
12: #define R_NO_REMAP
13:
14:
15: SEXP file20ee3140adab6b ( SEXP env ) {
16:
17: if (TYPEOF(env) == NILSXP)
18: Rf_error("use of NULL environment is defunct");
19: if (TYPEOF(env) != ENVSXP)
20: Rf_error("not an environment");
21:
22: UNLOCK_FRAME(env);
23:
24: // Return TRUE if unlocked; FALSE otherwise
25: SEXP result = PROTECT( Rf_allocVector(LGLSXP, 1) );
26: LOGICAL(result)[0] = FRAME_IS_LOCKED(env) == 0;
27: UNPROTECT(1);
28:
29: return result;
30:
31: Rf_warning("your C program does not return anything!");
32: return R_NilValue;
33: }
Compilation ERROR, function(s)/method(s) not created!
Error in compileCode(f, code, language, verbose) : MAP
| ^~~~~~~~~~
<command-line>: note: this is the location of the previous definition
file20ee3140adab6b.c: In function ‘file20ee3140adab6b’:
file20ee3140adab6b.c:11:25: error: implicit declaration of function ‘SET_ENVFLAGS’ [-Wimplicit-function-declaration]
11 | #define UNLOCK_FRAME(e) SET_ENVFLAGS(e, ENVFLAGS(e) & (~ FRAME_LOCK_MASK))
| ^~~~~~~~~~~~
file20ee3140adab6b.c:22:1: note: in expansion of macro ‘UNLOCK_FRAME’
22 | UNLOCK_FRAME(env);
| ^~~~~~~~~~~~
file20ee3140adab6b.c:11:41: error: implicit declaration of function ‘ENVFLAGS’ [-Wimplicit-function-declaration]
11 | #define UNLOCK_FRAME(e) SET_ENVFLAGS(e, ENVFLAGS(e) & (~ FRAME_LOCK_MASK))
| ^~~~~~~~
file20ee3140adab6b.c:22:1: note: in expansion of macro ‘UNLOCK_FRAME’
22 | UNLOCK_FRAME(env);
| ^~~~~~~~~~~~
make[1]: *** [/home/hornik/tmp/R.check/r-devel-gcc/Work/build/etc/Makeconf:190:
Calls: iBMA.glm -> iBMA.glm.matrix -> cfunction -> compileCode
Execution halted
Flavor: r-devel-linux-x86_64-debian-gcc