1

i'm trying to install Rstan on Debian for Rstudio server and seems to be a dead end.

The issue is:

  • I'm installing a package that depends on rstan. So I try to install rstan before

    install.package("rstan")

  • Error: rstan depend on brms, so I try to install brms

    install.package("brms")

  • Error: brms depends on shinystan, so I try to install shinystan

    install.package("shinystan")

  • Error: shinystan depends on rstan (WTF!!!!)

and this is the dead end.

How can I get out this circle?

4

1 回答 1

0

唔。brms未在dependsimports中列出rstan。确实,brms进口rstan

无论如何,您可以尝试一次安装它们。

install.packages(c("rstan", "brms", "shinystan"))

但是,参数的默认值dependencies应安装所有“Depends”、“Imports”和“LinkingTo”包。您是否为 指定值repos?默认值为getOption("repos"),但如果返回,则不使用NULL该参数。dependencies尝试指定repos = "https://cloud.r-project.org".

于 2017-11-09T21:00:00.063 回答