我在安装brms R包时遇到了一个错误。

huangapple go评论115阅读模式
英文:

I'm getting an error when installing brms R package

问题

"I'm trying to install 'brms' package but keep getting an error.
First, I installed 'brms' package, and then call the package from the library.
I'm getting the following error message. 'Error in library(brms) : there is no package called ‘brms’
Can someone help me?"

Error in library(brms) : there is no package called ‘brms’

英文:

I'm trying to install "brms" package but keep getting an error.
First, I installed "brms" package, and then call the package from the library.
I'm getting the following error message. "Error in library(brms) : there is no package called ‘brms’
Can someone help me?

  1. install.packages("brms")
  2. Installing package into C:/Users/.......’
  3. (as lib is unspecified)
  4. There is a binary version available but the source version is
  5. later:
  6. binary source needs_compilation
  7. brms 2.17.0 2.18.0 FALSE
  8. installing the source package brms
  9. trying URL 'https://cran.rstudio.com/src/contrib/brms_2.18.0.tar.gz'
  10. Content type 'application/x-gzip' length 4486548 bytes (4.3 MB)
  11. downloaded 4.3 MB
  12. * installing *source* package 'brms' ...
  13. ** package 'brms' successfully unpacked and MD5 sums checked
  14. ** using staged installation
  15. ** R
  16. Warning: namespace 'brms' is not available and has been replaced
  17. by .GlobalEnv when processing object 'brmsfit_example1'
  18. ** data
  19. *** moving datasets to lazyload DB
  20. ** inst
  21. ** byte-compile and prepare package for lazy loading
  22. Warning message:
  23. package 'Rcpp' was built under R version 4.0.5
  24. Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) :
  25. there is no package called 'Brobdingnag'
  26. Calls: <Anonymous> ... loadNamespace -> withRestarts -> withOneRestart -> doWithOneRestart
  27. Execution halted
  28. ERROR: lazy loading failed for package 'brms'
  29. * removing 'C:/Users/....'
  30. Warning in install.packages :
  31. installation of package brms had non-zero exit status
  32. The downloaded source packages are in
  33. C:\Users\....\downloaded_packages
  34. library(brms)

> Error in library(brms) : there is no package called ‘brms’

答案1

得分: 1

请注意警告中的信息:"installation of package ‘brms’ had non-zero exit status" 意味着安装失败。

以及"there is no package called 'Brobdingnag'" 意味着缺少此依赖项,请查看?install.packages

您可以使用参数dependencies = TRUE

英文:

Note in the warning :
installation of package ‘brms’ had non-zero exit status means that the installation failed.

and there is no package called 'Brobdingnag' means that this dependency is missing
see ?install.packages
you can use the argument dependencies = TRUE

答案2

得分: 0

在这种情况下,你可能没有让'install'步骤完成。该软件包有很多依赖项。再次尝试install.packages("brms")函数,并等待它完成。

英文:

In that case, you probably didn't let the 'install' step finish. That package has a lot of dependencies. Try install.packages("brms") function again and wait for it to finish.

huangapple
  • 本文由 发表于 2023年2月19日 12:21:27
  • 转载请务必保留本文链接:https://go.coder-hub.com/75497967.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定