n-kall / priorsense

priorsense: an R package for prior diagnostics and sensitivity
https://n-kall.github.io/priorsense/
GNU General Public License v3.0
53 stars 5 forks source link

Installation issue (probably) #19

Closed maxbiostat closed 1 year ago

maxbiostat commented 1 year ago

Doing

> remotes::install_github("n-kall/priorsense")
Downloading GitHub repo n-kall/priorsense@HEAD
── R CMD build ────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
✔  checking for file ‘/tmp/RtmpwhB4jC/remotesf4d1a3bc05181/n-kall-priorsense-d651292/DESCRIPTION’ ...
─  preparing ‘priorsense’:
✔  checking DESCRIPTION meta-information ...
─  checking for LF line-endings in source and make files and shell scripts
─  checking for empty or unneeded directories
   Omitted ‘LazyData’ from DESCRIPTION
─  building ‘priorsense_0.0.0.9000.tar.gz’

Installing package into ‘/home/luiz/R/x86_64-pc-linux-gnu-library/4.2’
(as ‘lib’ is unspecified)
* installing *source* package ‘priorsense’ ...
** using staged installation
** R
** byte-compile and prepare package for lazy loading
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) : 
  there is no package called ‘brms’
Calls: <Anonymous> ... loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart
Execution halted
ERROR: lazy loading failed for package ‘priorsense’
* removing ‘/home/luiz/R/x86_64-pc-linux-gnu-library/4.2/priorsense’
Warning message:
In i.p(...) :
  installation of package ‘/tmp/RtmpwhB4jC/filef4d1a305ed5fd/priorsense_0.0.0.9000.tar.gz’ had non-zero exit status

Installing brms via

install.packages("brms")

solves the problem.

Now, DESCRIPTION says the package suggests brms, so I'm not sure this is expected behaviour.

n-kall commented 1 year ago

Hi, Thanks for reporting this! I think I fixed it now (brms should no longer be required for installation)

maxbiostat commented 1 year ago

Cheers!