yarrr icon indicating copy to clipboard operation
yarrr copied to clipboard

Error: package 'BayesFactor' required by 'yarrr' could not be found

Open larsheemskerk opened this issue 6 years ago • 5 comments

Hello, I want to run the Yarrr package in Rstudio but I keep on receiving the following error message:

Error: package 'BayesFactor' required by 'yarrr' could not be found In addition: Warning message: package 'yarrr' was built under R version 3.5.0

I installed the BayesFactor package serveral times via package archive and the CRAN repository without succes. Could someone advice how to proceed?

larsheemskerk avatar Oct 30 '18 03:10 larsheemskerk

Darn, 99.999% of the time installing BayesFactor directly does the trick. Are you able to load BayesFactor after installing it? Did you restart RStudio?

If you're still having issues, can you send me a screenshot of the exact errors you get when installing / loading yarrr?

ndphillips avatar Nov 01 '18 06:11 ndphillips

I am having this issue too: image

Session info for reference: image

I just want to play with the diamonds lm()'s! Thanks for all your hard work.

DylanMG avatar Mar 15 '19 20:03 DylanMG

Easy fix: install BayesFactor manually with install.packages('BayesFactor'), then reinstall yarrr. That should fix it!

I've seen this issue often on PCs not sure why it occurs though...

ndphillips avatar Mar 17 '19 17:03 ndphillips

I am having what appears to be a similar issue today. The last part of the messages from the compile process:

/usr/lib/R/site-library/RcppEigen/include/Eigen/src/Core/DenseCoeffsBase.h:55:30: warning: ignoring attributes on template argument ‘Eigen::internal::packet_traits<int>::type’ {aka ‘__m128i’} [-Wignored-attributes]
cc1plus: some warnings being treated as errors
make: *** [/usr/lib/R/etc/Makeconf:204: RcppCallback.o] Error 1
ERROR: compilation failed for package ‘BayesFactor’
* removing ‘/home/david/R/x86_64-pc-linux-gnu-library/4.4/BayesFactor’
Warning in install.packages :
  installation of package ‘BayesFactor’ had non-zero exit status

I confirmed that my rcppeigen package is up to date, and I have also tried "install.packages("BayesFactor")" from the console.

My session info:

R version 4.4.1 (2024-06-14)
Platform: x86_64-pc-linux-gnu
Running under: Ubuntu 22.04.4 LTS

Matrix products: default
BLAS:   /usr/lib/x86_64-linux-gnu/blas/libblas.so.3.10.0 
LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.10.0

locale:
 [1] LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C               LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8    
 [5] LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8    LC_PAPER=en_US.UTF-8       LC_NAME=C                 
 [9] LC_ADDRESS=C               LC_TELEPHONE=C             LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       

time zone: America/Chicago
tzcode source: system (glibc)

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

loaded via a namespace (and not attached):
 [1] compiler_4.4.1    fastmap_1.2.0     cli_3.6.3         tools_4.4.1       htmltools_0.5.8.1 rstudioapi_0.16.0
 [7] rmarkdown_2.28    knitr_1.48        xfun_0.47         digest_0.6.29     rlang_1.1.4       evaluate_0.16   

dhimrich avatar Sep 12 '24 16:09 dhimrich

I found that using pak::pak("yarrr") did successfully install yarr and all the dependencies. It took about 47 minutes with my setup. I don't know why it's successful and the base R function was not.

dhimrich avatar Sep 12 '24 18:09 dhimrich