r - Compilation error using iBMA.glm from BMA package -


my problem trival (hope), haven't found specific on errors package , posts on compilation errors regard issues people wrote code themselfs (so change it).

i'm trying replicate first example example bma package help:

library(mass) library(bma) data(birthwt) y <- birthwt$lo x <- data.frame(birthwt[,-1]) x$race <- as.factor(x$race) x$ht <- (x$ht>=1)+0 x <- x[,-9] x$smoke <- as.factor(x$smoke) x$ptl <- as.factor(x$ptl) x$ht <- as.factor(x$ht) x$ui <- as.factor(x$ui)  ### add 41 columns of noise noise<- matrix(rnorm(41*nrow(x)), ncol=41) colnames(noise)<- paste('noise', 1:41, sep='') x<- cbind(x, noise)  ibma.glm.out<- ibma.glm( x, y, glm.family="binomial",                           factor.type=false, verbose = true,                           thresprobne0 = 5 ) summary(ibma.glm.out) 

everything goes fine until ibma.glm function returns lengthy compilation error don't understand (i've never compiled inside r hands):

warning message: running command 'make -f "c:/progra~1/r/r-32~1.2/etc/x64/makeconf" -f "c:/progra~1/r/r-32~1.2/share/make/winshlib.mk" shlib_ldflags='$(shlib_cxxldflags)' shlib_ld='$(shlib_cxxld)' shlib="file1b2c792f3888.dll" win=64 tclbin=64 objects="file1b2c792f3888.o"' had status 127   error(s) during compilation: source code errors or compiler configuration errors!  program source:   1: #include <r.h>   2: #include <rdefines.h>   3: #include <r_ext/error.h>   4:    5:    6: /* taken envir.c in 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:   13:   14: extern "c" {  15:   sexp file1b2c792f3888 ( sexp env );  16: }  17:   18: sexp file1b2c792f3888 ( sexp env ) {  19:   20: if (typeof(env) == nilsxp)  21: error("use of null environment defunct");  22: if (typeof(env) != envsxp)  23: error("not environment");  24:    25: unlock_frame(env);  26:    27: // return true if unlocked; false otherwise  28: sexp result = protect( rf_allocvector(lglsxp, 1) );  29: logical(result)[0] = frame_is_locked(env) == 0;  30: unprotect(1);  31:    32: return result;  33:   34:   warning("your c program not return anything!");  35:   return r_nilvalue;  36: } error in compilecode(f, code, language, verbose) :    compilation error, function(s)/method(s) not created! warning message: running command 'make -f "c:/progra~1/r/r-32~1.2/etc/x64/makeconf" -f "c:/progra~1/r/r-32~1.2/share/make/winshlib.mk" shlib_ldflags='$(shlib_cxxldflags)' shlib_ld='$(shlib_cxxld)' shlib="file1b2c792f3888.dll" win=64 tclbin=64 objects="file1b2c792f3888.o"' had status 127  in addition: warning message: running command 'c:/progra~1/r/r-32~1.2/bin/x64/r cmd shlib file1b2c792f3888.cpp 2> file1b2c792f3888.cpp.err.txt' had status 1  

my session info is:

> sessioninfo() r version 3.2.2 (2015-08-14) platform: x86_64-w64-mingw32/x64 (64-bit) running under: windows 7 x64 (build 7601) service pack 1  locale: [1] lc_collate=polish_poland.1250  lc_ctype=polish_poland.1250    lc_monetary=polish_poland.1250 [4] lc_numeric=c                   lc_time=polish_poland.1250      attached base packages: [1] grid      stats     graphics  grdevices utils     datasets  methods   base       other attached packages:  [1] bma_3.18.4        rrcov_1.3-8       inline_0.3.14     robustbase_0.92-5 leaps_2.9          [6] survival_2.38-3   rjava_0.9-6       relaimpo_2.2-2    mitools_2.3       survey_3.30-3     [11] boot_1.3-17       mass_7.3-43        loaded via namespace (and not attached): [1] mvtnorm_1.0-3   lattice_0.20-33 corpcor_1.6.8   pcapp_1.9-60    stats4_3.2.2    splines_3.2.2   [7] tools_3.2.2     deoptimr_1.0-3  cluster_2.0.3   


Comments

Popular posts from this blog

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -