Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot download the code #107

Closed
musicpiano opened this issue Jan 9, 2019 · 7 comments
Closed

cannot download the code #107

musicpiano opened this issue Jan 9, 2019 · 7 comments
Labels

Comments

@musicpiano
Copy link

Hi ,

I tried this command:
if (!require("remotes")) {
install.packages("remotes")
library("remotes")
}
install_github("leeper/prediction")
install_github("leeper/margins")

The error is:

Error in utils::download.file(url, path, method = download_method(), quiet = quiet, :
cannot download all files

session info for your system

sessionInfo()

R version 3.3.2 (2016-10-31)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)

locale:
[1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252
[3] LC_MONETARY=English_United States.1252 LC_NUMERIC=C
[5] LC_TIME=English_United States.1252

attached base packages:
[1] stats graphics grDevices utils datasets methods base

other attached packages:
[1] remotes_1.0.0 installr_0.17.8 RevoUtilsMath_10.0.0
[4] RevoUtils_10.0.2 RevoMods_10.0.0 MicrosoftML_1.0.0
[7] mrsdeploy_1.0 RevoScaleR_9.0.1 lattice_0.20-34
[10] rpart_4.1-10

loaded via a namespace (and not attached):
[1] codetools_0.2-15 CompatibilityAPI_1.1.0 foreach_1.4.3
[4] grid_3.3.2 R6_2.2.0 jsonlite_1.1
[7] curl_2.2 iterators_1.0.8 tools_3.3.2
[10] xfun_0.4 yaml_2.1.18 knitr_1.21
[13] mrupdate_1.0.0


@leeper
Copy link
Owner

leeper commented Feb 16, 2019

This sounds like a problem on your machine or something flaky. Is it still occurring?

@vincentarelbundock
Copy link
Contributor

The commands work on my computer. This issue should be closed.

@musicpiano
Copy link
Author

I reinstalled the system two months ago. The problem is still there. Don't know how to solve it. It looks like a common problem.
r-lib/remotes#130 (comment)

Thanks

@vincentarelbundock
Copy link
Contributor

clone and install locally? this doesn't seem like a margins issue (can you install other packages from github?)

@musicpiano
Copy link
Author

clone and install locally? this doesn't seem like a margins issue (can you install other packages from github?)

Thanks for your reply. It is the problem of install_github. It cannot install anything from github. I am new to R. Still don't know the issue after searching many posts.

I cloned the package to my local machine. Would you please tell me how to install? Sorry, I have searched online, cannot find the way to install it locally.

@vincentarelbundock
Copy link
Contributor

Look into R CMD INSTALL

or

library(devtools)
install('path/path/path')

@musicpiano
Copy link
Author

it works. Thank you so much

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants