仕事用 PC に R と R studio があり、アンバランス パッケージをダウンロードして使用しようとしています。ただし、試行するたびに、依存関係 mlr がダウンロードされないことがわかります。
install.packages("mlr")
Package which is only available in source form, and may need compilation of
C/C++/Fortran: ‘mlr’
These will not be installed
別のスレッドで、これは Rtools が最新ではないことが原因である可能性があることを読みました。それを確認しました。
install.Rtools()
Loading required namespace: devtools
No need to install Rtools - You've got the relevant version of Rtools installed
github経由でダウンロードしようとしましたが、タイムアウトしましたが、これを機能させるために最初にログインする必要があるかどうか疑問に思っています.
devtools::install_github("mlr-org/mlr")
Downloading GitHub repo mlr-org/mlr@master
from URL https://api.github.com/repos/mlr-org/mlr/zipball/master
Error in curl::curl_fetch_memory(url, handle = handle) :
Timeout was reached
本当に奇妙なことは、この PC で他のパッケージをダウンロードでき、個人の PC では問題なくダウンロードできることです。
EDIT両方のマシンで使用しているミラーを確認しましたが、同じ ( http://www.stats.ox.ac.uk/pub/RWin ) であるため、問題になることはありません。また、以下の最初のコメントへの回答で提案されている調整オプションを使用しましたが、失敗しました。
options(download.file.method = "wininet")
> devtools::install_github("mlr-org/mlr")
Downloading GitHub repo mlr-org/mlr@master
from URL https://api.github.com/repos/mlr-org/mlr/zipball/master
Error in curl::curl_fetch_memory(url, handle = handle) :
Timeout was reached
何かご意見は?私は少し迷っており、データのバランスを取り直すために別のパッケージを探すことしか考えられません。
J