Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/r/76.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用摇臂安装RStan_R_Docker_Wsl 2 - Fatal编程技术网

使用摇臂安装RStan

使用摇臂安装RStan,r,docker,wsl-2,R,Docker,Wsl 2,我希望能够从二进制文件安装rstan包(无需从源代码编译)。德克·埃德尔布埃特尔的这篇文章有一些明确的指示,应该能让我做到这一点。但是,当我尝试安装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 li

我希望能够从二进制文件安装rstan包(无需从源代码编译)。德克·埃德尔布埃特尔的这篇文章有一些明确的指示,应该能让我做到这一点。但是,当我尝试安装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 Linux子系统(WSL-2)中开发一个Ubuntu操作系统。

这些事情可能会发生——最好的办法是尝试一下

sudo apt install r-cran-v8
这表明需要
r-cran-node64
,但不可用

我用20.04比18.04工作得多,所以我不知道这里发生了什么。我建议在r-sig-debian列表中询问是否有其他人看到过这一点


另外,如果您尝试20.04,它会在那里工作。

谢谢。它与Ubuntu 20.04兼容。我认为你最初在rocker上发表的博客文章/闪电演讲(使用rocker和PPAs获得乐趣和利润)很棒。也许值得更新,以便人们默认使用Ubuntu 20.04?很高兴知道它有帮助。至于博客更新,写更新的文章会更自然。此外,安装18.04中出现的问题往往是暂时性的,因此不可能一直更新所有博客。最好解决这个问题。。。