【问题标题】:How to install R on the Cloud 9 IDE?如何在 Cloud 9 IDE 上安装 R?
【发布时间】:2016-12-26 18:31:20
【问题描述】:

我最近开始使用 Cloud 9 IDE,并从 Windows 7 Professional 系统迁移了我的代码。 Cloud 9 提供了一个预配置了 Node.js、Python 等的 Ubuntu VM。我无法使用 CRAN 网站上提供的指令集安装我最喜欢的编程语言 R。

这是指令集here

我无法启动它,并且在从 CRAN 镜像下载 R 的第一步中绊倒了。我试过了:

somebody:~/workspace $ deb https://cran.stat.auckland.ac.nz/bin/linux/ubuntu trusty/
bash: deb: command not found

显然,我是 Linux 的菜鸟。有什么帮助吗?

【问题讨论】:

  • deb 不是命令,它告诉您存储库在哪里。您需要将其添加到 sources.list 尝试echo "deb https://cran.stat.auckland.ac.nz/bin/linux/ubuntu trusty/" >> /etc/apt/sources.list
  • Sun Bee 下面给出的答案应该足以在 Ubuntu 上安装 R。您可能还想设置一个自定义运行程序来从 cloud9 中运行您的代码。转到 Run/Run With/New Runner 并使用以下 JSON: { "cmd": ["Rscript","--no-save","$file","$args" ], "info": "Started $project_path$file_name", "env": {}, "selector": "source.r" } 还有其他方法将您的代码从 cloud9 传递到 R,它与 SublimeText 或 Atom 非常相似。

标签: r c9.io


【解决方案1】:

更新:

  1. 下载

    wget http://cran.r-project.org/src/base/R-3/R-3.0.3.tar.gz
    tar -xzf R-3.0.3.tar.gz
    cd R-3.0.3
    
  2. 安装时

    sudo apt-get update
    sudo apt-get install r-base
    
  3. 发布为

    someone:~/workspace/R-3.0.3 $ R
    

【讨论】:

  • 你能在 c9 上安装 Rstudio 吗?还是我们必须在控制台本身中使用它?
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2014-09-07
相关资源
最近更新 更多