Back to my graduate year, I set up Travis to automatically test my R packages.
devtools is a good tools, but there are a few issues:
install_bioc()only works well in development version
- even that,
install_bioc()would promote you to type
yto install BiocInstaller. But it’s hard to response to that, since Travis CI is automatic. So I have to manually install BiocInstaller before calling it.
- Due to a misunderstanding 1, only in development version can
install_local()install dependencies on GitHub
The newly release version of remotes works very nice. (devtools is splited,
install_*() is moved to remotes and exported back)
It just needs Git on your system (no BiocInstaller at all), and it’s very lightweight, only needs severval seconds to install.
By the way, the new BiocManager is also very nice. You can install it as a normal CRAN package, no more
It’s a misconception started before the first I use R on Travis, the exact point should be the first time that I write
DESCRIPTION. At that time, I think I just need to specify GitHub packages in
Remotes. But devtools doesn’t install these packages, I even switch to Github version of devtools.
Thanks to this SO answer, I know that I have to both specify package location in
Importsand add package name in
Depends. Acutally, all I need to avoid the caveat is to read the official documentation:
You can mark any regular dependency defined in the Depends, Imports, Suggests or Enhances fields as being installed from a remote location by adding the remote location to Remotes in your DESCRIPTION file.
注：原文来自 2018-06-03 的 post：It’s me rather than devtools who is wrong | 错的并不是devtools，而是我↩︎
The damn network speed never troubles me any more, 何以解忧，唯有镜像↩︎