install_github函数不适用于活页夹

时间:2018-07-12 15:41:06

标签: r jupyter-notebook

我正在mybinder.org中创建R环境(通过Github存储库)可执行文件。 仅使用Jupyter集线器时,我的代码可以正常工作,但是在mybinder中执行代码时,install_github()函数无法正常工作(install.packages()等其他函数也可以正常工作)。 不工作是指我运行此程序时的意思:

    install_github("hms-dbmi/Rcupcake", force = TRUE)

我明白了:

    Downloading GitHub repo hms-dbmi/Rcupcake@master
    from URL https://api.github.com/repos/hms-dbmi/Rcupcake/zipball/master
    Installing Rcupcake
    Installation failed: 'BiocInstaller' must be installed to  install Bioconductor packages

值得一提的是,我在Github存储库上创建了一个r ---格式的runtime.txt文件,在运行install_github()函数之前,我总是确保the devtools()函数已正确安装。尝试在mybinder环境中安装BiocInstaller时,出现以下提示:

    Installing package into ‘/srv/rlibs’
    (as ‘lib’ is unspecified)
    Warning message:
    “package ‘BiocInstaller’ is not available (for R version 3.4.4)”

我什至不知道为什么BiocInstaller问题确实会出现在mybinder中,因为在常规的Jupyter集线器环境中运行时我不必刻意安装它。

我不确定我在做什么错;我是mybinder的新手。 如何使我的代码正常工作?我是否必须在github存储库中指定一个新文件?

谢谢您的帮助

0 个答案:

没有答案