blavaan does not load

128 views
Skip to first unread message

christop...@gmail.com

unread,
Aug 16, 2021, 10:28:38 AM8/16/21
to blavaan
Various attempts to load blavaan are in vain:

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

Uninstalling then reinstalling did not help, restarting R or RStudio does not help. Is this a known problem?

Ed Merkle

unread,
Aug 16, 2021, 10:49:21 AM8/16/21
to christop...@gmail.com, blavaan
Christopher,

I have not heard this one before. Could you send the results of your sessionInfo() and also clarify whether you are installing from CRAN or from github? If you haven't, you might also check that your other packages are updated.

Thanks,
Ed




--
You received this message because you are subscribed to the Google Groups "blavaan" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blavaan+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/blavaan/1797b1d4-a024-457a-ad23-683ec686a5a8n%40googlegroups.com.

Mauricio Garnier-Villarreal

unread,
Aug 16, 2021, 10:52:06 AM8/16/21
to blavaan
Can your provide more information? Like your sessionInfo(), also this might be a problem with rstan instead of blavaan. Please thys syntax and see if you have a working stan

library(rstan)
scode <- "
parameters {
  real y[2];
}
model {
  y[1] ~ normal(0, 1);
  y[2] ~ double_exponential(0, 2);
}
"
fit1 <- stan(model_code = scode, iter = 1000)
print(fit1)


If this doesnt work it means the problem is with stan. Might be that you need to install the latest version of RTools

christop...@gmail.com

unread,
Aug 16, 2021, 11:10:26 AM8/16/21
to blavaan
Thanks. Running the suggested code for rstan clarified that software was missing (updated XCode?). I'm working on it and will report back, whatever the outcome. 

---------------------------------------

> sessionInfo()
R version 4.1.0 (2021-05-18)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS Big Sur 11.5

Matrix products: default
LAPACK: /Library/Frameworks/R.framework/Versions/4.1/Resources/lib/libRlapack.dylib

locale:
[1] en_GB.UTF-8/en_GB.UTF-8/en_GB.UTF-8/C/en_GB.UTF-8/en_GB.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
 [1] rstan_2.21.2            StanHeaders_2.21.0-7    RcppParallel_5.1.4      Rcpp_1.0.6              MplusAutomation_1.0.0  
 [6] patchwork_1.1.1         rgeos_0.5-5             sp_1.4-5                rnaturalearthdata_0.1.0 rnaturalearth_0.1.0    
[11] here_1.0.1              sjmisc_2.8.7            semTools_0.5-4          lavaan_0.6-9            kableExtra_1.3.4       
[16] essurvey_1.0.7          broomExtra_4.2.3        broom_0.7.8             gghighlight_0.3.2       sjlabelled_1.1.8       
[21] glue_1.4.2              forcats_0.5.1           stringr_1.4.0           dplyr_1.0.7             purrr_0.3.4            
[26] readr_1.4.0             tidyr_1.1.3             tibble_3.1.2            ggplot2_3.3.5           tidyverse_1.3.1        
[31] plyr_1.8.6             

loaded via a namespace (and not attached):
  [1] readxl_1.3.1       backports_1.2.1    systemfonts_1.0.2  TMB_1.7.20         listenv_0.8.0      rstantools_2.1.1  
  [7] inline_0.3.19      digest_0.6.27      htmltools_0.5.1.1  fansi_0.5.0        magrittr_2.0.1     checkmate_2.0.0   
 [13] globals_0.14.0     modelr_0.1.8       matrixStats_0.58.0 MCMCpack_1.5-0     sandwich_3.0-1     svglite_2.0.0     
 [19] prettyunits_1.1.1  colorspace_2.0-1   rvest_1.0.0        haven_2.4.1        xfun_0.23          callr_3.7.0       
 [25] crayon_1.4.1       jsonlite_1.7.2     zoo_1.8-9          gtable_0.3.0       emmeans_1.6.1      webshot_0.5.2     
 [31] MatrixModels_0.5-0 V8_3.4.2           pkgbuild_1.2.0     future.apply_1.8.1 SparseM_1.81       scales_1.1.1      
 [37] mvtnorm_1.1-1      DBI_1.1.1          viridisLite_0.4.0  xtable_1.8-4       performance_0.7.2  tmvnsim_1.0-2     
 [43] units_0.7-1        proxy_0.4-25       stats4_4.1.0       httr_1.4.2         ellipsis_0.3.2     farver_2.1.0      
 [49] loo_2.4.1          pkgconfig_2.0.3    dbplyr_2.1.1       utf8_1.2.1         labeling_0.4.2     tidyselect_1.1.1  
 [55] rlang_0.4.11       reshape2_1.4.4     munsell_0.5.0      cellranger_1.1.0   tools_4.1.0        cli_2.5.0         
 [61] gsubfn_0.7         generics_0.1.0     pacman_0.5.1       ggridges_0.5.3     evaluate_0.14      yaml_2.2.1        
 [67] mcmc_0.9-7         processx_3.5.2     knitr_1.33         fs_1.5.0           pander_0.6.4       future_1.21.0     
 [73] nlme_3.1-152       quantreg_5.85      xml2_1.3.2         nonnest2_0.5-5     bayesplot_1.8.1    compiler_4.1.0    
 [79] rstudioapi_0.13    curl_4.3.1         e1071_1.7-7        reprex_2.0.0       pbivnorm_0.6.0     stringi_1.6.2     
 [85] ps_1.6.0           parameters_0.14.0  lattice_0.20-44    texreg_1.37.5      Matrix_1.3-3       classInt_0.4-3    
 [91] vctrs_0.3.8        CompQuadForm_1.4.3 pillar_1.6.1       lifecycle_1.0.0    estimability_1.3   data.table_1.14.0 
 [97] insight_0.14.2     conquer_1.0.2      R6_2.5.0           bookdown_0.22      gridExtra_2.3      KernSmooth_2.23-20
[103] parallelly_1.27.0  codetools_0.2-18   boot_1.3-28        fastDummies_1.6.3  MASS_7.3-54        assertthat_0.2.1  
[109] proto_1.0.0        rprojroot_2.0.2    withr_2.4.2        mnormt_2.0.2       broom.mixed_0.2.6  bayestestR_0.9.0  
[115] parallel_4.1.0     hms_1.1.0          grid_4.1.0         coda_0.19-4        class_7.3-19       rmarkdown_2.8     
[121] sf_0.9-8           lubridate_1.7.10 


christop...@gmail.com

unread,
Aug 16, 2021, 11:11:26 AM8/16/21
to blavaan
PS. Installed from CRAN: install.packages()

christop...@gmail.com

unread,
Aug 16, 2021, 12:10:53 PM8/16/21
to blavaan
Thanks a lot! The suggested code resulted in the suggestion to download/install additional software. Done that, blavaan seems to run smoothly now. 
Reply all
Reply to author
Forward
0 new messages