【问题标题】:How to install Hotelling (R package) with conda?如何使用 conda 安装 Hotelling(R 包)?
【发布时间】:2018-01-16 17:36:21
【问题描述】:

【问题讨论】:

  • “hotelling”还是“Hotelling”?
  • 都不工作。我想我需要指定另一个来源,但我应该指定什么来源?那只是hotelling包的URL吗?我如何用 conda 做到这一点? conda 文档不清楚。
  • 你试过conda install -c r r-Hotelling吗?你在使用jupyter吗,你可以从那里安装它
  • 刚刚尝试了该命令,但没有成功。
  • 答案呢here

标签: r conda


【解决方案1】:

它不适用于任何 anaconda 存储库。您可以将其添加到私人仓库,然后使用 conda 安装它。启动一个anaconda 帐户并确保您的根环境的 conda/python 是最新的 (conda update conda && conda update python)

在某个目录和你的根环境中,使用

conda skeleton cran Hotelling

这将为构建基于 CRAN 版本的软件包提供一个框架。 然后构建它(请注意,尽管 CRAN 名称是 Title case,但 anaconda 包都是小写的):

conda build --R=<whatever_your_version_of_r_is> r-hotelling

希望这将建立。如果成功,它应该会给您一条消息,告诉您如何上传到您在 anaconda-cloud 上的帐户

anaconda upload <path_to_your_built_r-hotelling> -u <your_account_name>

然后安装它:

conda install -c <your_account_name> r-hotelling

【讨论】:

猜你喜欢
  • 2018-12-24
  • 2019-02-03
  • 1970-01-01
  • 1970-01-01
  • 2020-06-30
  • 2015-10-02
  • 1970-01-01
  • 2020-03-09
  • 1970-01-01
相关资源
最近更新 更多