Issues installing
Opened this issue · 2 comments
Hi,
I'm trying to install bayesfirstaid as instructed with rtools and JAGS installed and this is what I get:
devtools::install_github("rasmusab/bayesian_first_aid")
Downloading GitHub repo rasmusab/bayesian_first_aid@HEAD
Skipping 1 packages not available: mnormt
√ checking for file 'C:\Users\dk3434\AppData\Local\Temp\RtmpA5fVvn\remotes51b4555f4e43\rasmusab-bayesian_first_aid-d80c0fd/DESCRIPTION' (507ms)
- preparing 'BayesianFirstAid':
√ checking DESCRIPTION meta-information ... - checking for LF line-endings in source and make files and shell scripts
- checking for empty or unneeded directories
- building 'BayesianFirstAid_0.1.tar.gz'
- installing source package 'BayesianFirstAid' ...
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
Error: (converted from warning) package 'rjags' was built under R version 3.6.3
Execution halted
ERROR: lazy loading failed for package 'BayesianFirstAid' - removing 'C:/Users/dk3434/Documents/R/R-3.6.1/library/BayesianFirstAid'
Error: Failed to install 'BayesianFirstAid' from GitHub:
(converted from warning) installation of package ‘C:/Users/dk3434/AppData/Local/Temp/RtmpA5fVvn/file51b45b22/BayesianFirstAid_0.1.tar.gz’ had non-zero exit status
Notice that your R version is 3.6.1 but the error states that rjags was built under 3.6.3. Either you need to upgrade your R version or disable the promotion of errors to warnings. The first hit for a search for "devtools r warnings" brought me here, which links to this documentation. The end result is that you need to set an environment variable.
Setting R_REMOTES_NO_ERRORS_FROM_WARNINGS="false" will cause warning messages during calls to install.packages() to become errors. Often warning messages are caused by dependencies failing to install.
I am having the same problem as @dkunichoff. has anyone solved it yet?