Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upImprove error detection on failed download #78
Conversation
When a package can't be downloaded, a warning appears:
Warning in download.packages(pkgs, destdir = tmpd, available = available, :
download of package ‘vcd’ failed
The package is not installed and install2.r returns successfully (even though
we use --error).
This commit captures that warning so the error can be raised
|
That looks good (and useful) to me! I'll poke @cboettig too who is behind this option and feature but I see no reason not to merge (though I still always prefer an issue ticket prior to a PR but as this one is small I can see that would maybe be too much formalism...) |
|
apologies for the slow reply but this looks good to me! |
When a package can't be downloaded, a warning appears:
The package is not installed, but install2.r returns successfully even though
we use
--error.This commit captures that warning so the error can be captured and returned.
One way to simulate this error is by making
/tmp/downloaded_packagesnot writeable.