opencpu不显示已安装的软件包 [英] opencpu does not show installed packages

查看:120
本文介绍了opencpu不显示已安装的软件包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先让我承认,我是Docker/opencpu世界的新手.这是问题所在.

Let me confess first I am new to Docker / opencpu world. here is the issue.

  1. 我在Windows 10盒子上的opencpu网站上安装了Docker.
  2. 我能够通过"docker run --name myDocker -t -p 80:80 -p 8004:8004 opencpu/rstudio"成功运行Docker.
  3. 我通过"R CMD INSTALL/tmp/AnotherPackage_0.1.0.tar.gz"成功安装了我的R软件包.
  4. 现在唯一的问题是我在 http://localhost/ocpu/test/中看不到我的软件包.因此,在下图中,我无法在右框中看到我的包裹(其中显示了所有其他包裹).
  1. I installed Docker from opencpu site on my windows 10 box.
  2. I was able to successfully run the docker by "docker run --name myDocker -t -p 80:80 -p 8004:8004 opencpu/rstudio".
  3. I successfully installed my R package by "R CMD INSTALL /tmp/AnotherPackage_0.1.0.tar.gz".
  4. Only issue now is I cant see my Package in http://localhost/ocpu/test/. so in below figure I cant see my package in right box (which shows all the other packages).

如果在Endpoint文本框中执行/library/AnotherPackage,我可以看到我的软件包的描述等.

If I do /library/AnotherPackage in Endpoint text box I can see my package's description etc..

推荐答案

您可能已将该软件包安装在另一个库中.您可以向我们展示您的R CMD INSTALL行的输出吗?特别是以安装到... 开头的最后一行.

You probably installed the package in another library. Can you show us the output of your R CMD INSTALL line? In particular the final line that starts with installing to....

要安装到全局库中,请以用户opencpu身份安装:

To install into the global library, either install as user opencpu:

sudo su opencpu
R CMD INSTALL /tmp/AnotherPackage_0.1.0.tar.gz

或以root身份安装:

Or install as root:

sudo -i
R CMD INSTALL /tmp/AnotherPackage_0.1.0.tar.gz

这篇关于opencpu不显示已安装的软件包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆