rmcelreath / rethinking

Statistical Rethinking course and book package
2.15k stars 604 forks source link

error installig pkg #185

Open Berubec opened 5 years ago

Berubec commented 5 years ago

install_github(rmcelreath/rethinking) Error in rethrow_call(c_processx_exec, command, c(command, args), stdin, : ### Command not found @win/processx.c:977

by the way:

sessionInfo() R version 3.6.1 (2019-07-05) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 10 x64 (build 17134)

Matrix products: default

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

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

other attached packages: [1] processx_3.4.1 devtools_2.2.1 usethis_1.5.1 rstan_2.19.2 ggplot2_3.2.1 StanHeaders_2.19.0

loaded via a namespace (and not attached): [1] Rcpp_1.0.2 compiler_3.6.1 pillar_1.4.2 prettyunits_1.0.2 remotes_2.1.0 tools_3.6.1 testthat_2.2.1
[8] digest_0.6.21 pkgbuild_1.0.5 packrat_0.5.0 pkgload_1.0.2 memoise_1.1.0 tibble_2.1.3 gtable_0.3.0
[15] pkgconfig_2.0.3 rlang_0.4.0 cli_1.1.0 rstudioapi_0.10 parallel_3.6.1 loo_2.1.0 gridExtra_2.3
[22] dplyr_0.8.3 withr_2.1.2 desc_1.2.0 fs_1.3.1 stats4_3.6.1 tidyselect_0.2.5 rprojroot_1.3-2
[29] grid_3.6.1 inline_0.3.15 glue_1.3.1 R6_2.4.0 sessioninfo_1.1.1 purrr_0.3.2 callr_3.3.2
[36] magrittr_1.5 matrixStats_0.55.0 backports_1.1.4 scales_1.0.0 ps_1.3.0 ellipsis_0.3.0 assertthat_0.2.1
[43] colorspace_1.4-1 lazyeval_0.2.2 munsell_0.5.0 crayon_1.3.4

torkar commented 5 years ago

What happens when you type:

install.packages(c("coda","mvtnorm","devtools","loo")) library(devtools) devtools::install_github("rmcelreath/rethinking")

as per McElreath's instruction on the GitHub page? https://github.com/rmcelreath/rethinking

pcsksa5 commented 4 years ago

Hi, When I follow McElreath's instructions (and after having successfully installed rstan), I get the following error message: Error: Failed to install 'rethinking' from GitHub: (converted from warning) installation of package ‘C:/Users/PETROS~1.BOU/AppData/Local/Temp/Rtmp0EVtGq/file2f9c1ff4698/rethinking_1.59.tar.gz’ had non-zero exit status

There was a different approach suggested in the forum: install.packages(c("mvtnorm","loo","coda"), repos="https://cloud.r-project.org/",dependencies=TRUE) options(repos=c(getOption('repos'), rethinking='http://xcelab.net/R')) install.packages('rethinking',type='source')

but that did not work either.

Any advice?

Thank you in advance.

rmcelreath commented 4 years ago

Without a more specific error message, not easy to figure out the problem.

In the past, Windows users with installation problems have had to delete their entire R library and reinstall everything. I think the issue is with permissions or library corruption. Since I don't use Windows, it is quite mysterious to me.

Sorry I don't have any more specific advice.

goldfrank commented 4 years ago

Having just installed the package on Windows; I had an identical error message, which was resolved by updating R to the latest version (3.6.3) and recompiling all installed libraries from source. The updateR() function in the "installr" package for Windows made this very straightforward:

using the RGui: install.packages("installr") updateR()

Then install rethinking as prescribed.