我希望能够从二进制文件安装rstan包(不需要从源代码编译)。Dirk Eddelbuettel的这篇blog post有一些明确的说明,应该可以让我准确地做到这一点。但是,当我尝试安装RStan时,收到以下错误消息。下面是我使用的命令。
docker run --rm -ti rocker/r-ubuntu:18.04 bash
apt-get update; apt-get dist-upgrade -y
apt-get install -y r-cran-rstan这将产生以下错误消息。
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
r-cran-rstan : Depends: r-cran-v8 but it is not going to be installed
E: Unable to correct problems, you have held broken packages.使用Dirk的说明安装R tidyverse包可以很好地工作。我正在开发Windows Subsystem for Linux (WSL-2)中的Ubuntu操作系统。
发布于 2020-09-17 11:17:16
这些事情都有可能发生--最好的办法就是尝试一下
sudo apt install r-cran-v8这表明r-cran-node64是必需的,但不可用。
我在20.04上的工作比18.04多得多,所以我不知道这里发生了什么。我建议在r-sig-debian列表上询问其他人是否看过这个。
PS,如果你尝试20.04,它在那里是有效的。
https://stackoverflow.com/questions/63927753
复制相似问题