简体   繁体   English

R — install_github到底做什么?

[英]R — What exactly does install_github do?

never used R before. 以前从未使用过R。 I need to integrate R into continuous build. 我需要将R集成到连续构建中。

The script I got has the line 我得到的脚本行

RUN Rscript -e "devtools::install_github('my-repo', auth_token = '"$Github_Token"')"

I know this command will download the entire repo, but how is the package installed? 我知道此命令将下载整个存储库,但是如何安装软件包? Is it looking for the .R files, or is it looking for the .rba files? 它是在寻找.R文件,还是在寻找.rba文件?

My goal is to integrate a build process with a CI. 我的目标是将构建过程与CI集成在一起。 I found a way to construct these rba files through a docker container, but these will not be checked into github. 我找到了一种通过Docker容器构造这些rba文件的方法,但是这些不会被检入github。 I need to make sure the install doesn't require these rba files, then I can move these files somewhere else. 我需要确保安装不需要这些rba文件,然后才能将这些文件移动到其他位置。

The function install_github installs a package the same as any other method of package installation, but automates the download from github for you. 功能install_github会与其他任何软件包安装方法一样安装软件包,但是会自动为您提供从github的下载。 The remote repository needs to be an R package, meaning it needs to have at least an R/ directory containing R code, a DESCRIPTION file containing the package metadata, and a NAMESPACE file describing the package imports and exports. 远程仓库必须的R包,这意味着它需要具有至少一个R/含目录R代码里面,一个DESCRIPTION包含包元数据文件,和一个NAMESPACE描述包的进口和出口的文件。

For install_github to work, it should not inherently require that your rba files are present. 为了使install_github正常工作,它不应固有地要求您的rba文件存在。

For more information on packages, I suggest reading R packages . 有关包的更多信息,建议阅读R包

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM