danheck / metaBMA

Bayesian Model Averaging for Random and Fixed Effects Meta-Analysis
https://danheck.github.io/metaBMA/
28 stars 2 forks source link

error in load action .__A__.1 for package metaBMA: is(module, "character"): object 'm' not found #5

Closed IndrajeetPatil closed 4 years ago

IndrajeetPatil commented 4 years ago

Trouble loading the new version (0.6.3) of metaBMA package on a Windows machine:

> packageVersion("metaBMA")
[1] ‘0.6.3’

> library(metaBMA)
Loading required package: Rcpp
Error: package or namespace load failed for ‘metaBMA’ in .doLoadActions(where, attach):
 error in load action .__A__.1 for package metaBMA: is(module, "character"): object 'm' not found

This is the trace I see:

> traceback()
6: stop(msg, call. = FALSE, domain = NA)
5: value[[3L]](cond)
4: tryCatchOne(expr, names, parentenv, handlers[[1L]])
3: tryCatchList(expr, classes, parentenv, handlers)
2: tryCatch({
       attr(package, "LibPath") <- which.lib.loc
       ns <- loadNamespace(package, lib.loc)
       env <- attachNamespace(ns, pos = pos, deps, exclude, include.only)
   }, error = function(e) {
       P <- if (!is.null(cc <- conditionCall(e))) 
           paste(" in", deparse(cc)[1L])
       else ""
       msg <- gettextf("package or namespace load failed for %s%s:\n %s", 
           sQuote(package), P, conditionMessage(e))
       if (logical.return) 
           message(paste("Error:", msg), domain = NA)
       else stop(msg, call. = FALSE, domain = NA)
   })
1: library(metaBMA)

Here is session info:

> sessioninfo::session_info(include_base = TRUE)
- Session info ---------------------------------------------------------------------------------------------------------------------------
 setting  value                                             
 version  R Under development (unstable) (2020-02-28 r77874)
 os       Windows 10 x64                                    
 system   x86_64, mingw32                                   
 ui       RStudio                                           
 language (EN)                                              
 collate  English_United States.1252                        
 ctype    English_United States.1252                        
 tz       Europe/Berlin                                     
 date     2020-06-04                                        

- Packages -------------------------------------------------------------------------------------------------------------------------------
 ! package     * version date       lib source        
   assertthat    0.2.1   2019-03-21 [1] CRAN (R 4.0.0)
   base        * 4.0.0   2020-02-29 [?] local         
   cli           2.0.2   2020-02-28 [1] CRAN (R 4.0.0)
 P compiler      4.0.0   2020-02-29 [2] local         
   crayon        1.3.4   2017-09-16 [1] CRAN (R 4.0.0)
 P datasets    * 4.0.0   2020-02-29 [2] local         
   digest        0.6.25  2020-02-23 [1] CRAN (R 4.0.0)
   evaluate      0.14    2019-05-28 [1] CRAN (R 4.0.0)
   fansi         0.4.1   2020-01-08 [1] CRAN (R 4.0.0)
   glue          1.4.1   2020-05-13 [1] CRAN (R 4.0.0)
 P graphics    * 4.0.0   2020-02-29 [2] local         
 P grDevices   * 4.0.0   2020-02-29 [2] local         
   htmltools     0.4.0   2019-10-04 [1] CRAN (R 4.0.0)
   knitr         1.28    2020-02-06 [1] CRAN (R 4.0.0)
 P methods     * 4.0.0   2020-02-29 [2] local         
   Rcpp          1.0.4.6 2020-04-09 [1] CRAN (R 4.0.0)
   rlang         0.4.6   2020-05-02 [1] CRAN (R 4.0.0)
   rmarkdown     2.2     2020-05-31 [1] CRAN (R 4.0.0)
   rstudioapi    0.11    2020-02-07 [1] CRAN (R 4.0.0)
   sessioninfo   1.1.1   2018-11-05 [1] CRAN (R 4.0.0)
 P stats       * 4.0.0   2020-02-29 [2] local         
 P tools         4.0.0   2020-02-29 [2] local         
 P utils       * 4.0.0   2020-02-29 [2] local         
   withr         2.2.0   2020-04-20 [1] CRAN (R 4.0.0)
   xfun          0.14    2020-05-20 [1] CRAN (R 4.0.0)
   yaml          2.2.1   2020-02-01 [1] CRAN (R 4.0.0)

[1] C:/Users/inp099/Documents/R/win-library/4.0
[2] C:/Program Files/R/R-devel/library

 P -- Loaded and on-disk path mismatch.
IndrajeetPatil commented 4 years ago

I updated to pre-release version of 4.1.0 and I no longer get this error. So this might have been some weird edge case with the R version on my computed.