Comments (7)
I have narrowed the problem to mvtnorm, which was updated to v 1.0-4 on 1/19/16.
I have a previous installation of mvtnorm v 1.0-3 in my R, but the installing the rethinking package throws the following error since v 1.0-4 cannot be installed/updated:
- installing source package 'rethinking' ...
** R
** data
** inst
** preparing package for lazy loading
Creating a generic function for 'coef' from package 'stats' in package 'rethinking'
Creating a generic function for 'vcov' from package 'stats' in package 'rethinking'
Creating a generic function for 'nobs' from package 'stats' in package 'rethinking'
Creating a generic function for 'logLik' from package 'stats' in package 'rethinking'
Creating a generic function for 'deviance' from package 'stats' in package 'rethinking'
Creating a generic function for 'AIC' from package 'stats' in package 'rethinking'
Creating a generic function for 'pairs' from package 'graphics' in package 'rethinking'
** help
*** installing help indices
** building package indices
Error in format.default(x, width = width, justify = if (flag == "-") "left" else "right") :
8 arguments passed to .Internal(format) which requires 9
ERROR: installing package indices failed - removing 'q:/R/R-3.2.3/library/rethinking'
Error: Command failed (1)
Without the rethinking package and the ability to do the exercises, the pedagogical logic of the Rethinking book fails, since the exercises cannot be completed. I assume others trying to do this after 1/19/16 must be having same problem using the Rethinking book due to mvtnorm.
Please help or offer any advice if you can.
Thanks.
Red Owl (yes, my real name)
from rethinking.
Hmmm, this seems very similar to this bug: https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=16411 . But according to that discussion (scroll to the bottom) it was only present in R 3.2.2 , which you don't have, and should be fixed in R 3.2.3....
from rethinking.
Thanks, rasmusab, for taking the time to help me with this. Problem is fixed now with your help.
I had uninstalled and reinstalled Rtools33.exe and all of the relevant packages, but I had not questioned my installation of R 3.2.3, because it had seemed to install correctly.
After reading the bug report you linked, I uninstalled R 3.2.3 and then reinstalled it. That fixed the problem.
Red Owl (yes, my real name)
from rethinking.
Yeah, it seems like it was a pretty short-lived bug in base R... Great that it works now! :)
from rethinking.
I have R 3.4.0 and get the following failure when executing the R code 0.5 in the book. Any help appreciated.
Martin Keane
library(devtools)
devtools::install_github("rmcelreath/rethinking")
Downloading GitHub repo rmcelreath/rethinking@master
from URL https://api.github.com/repos/rmcelreath/rethinking/zipball/master
Installing rethinking
"C:/PROGRA1/R/R-341.0/bin/x64/R" --no-site-file --no-environ --no-save --no-restore --quiet CMD INSTALL
"C:/Users/mak/AppData/Local/Temp/RtmpgP1ter/devtools2e107a7c3a69/rmcelreath-rethinking-a309712"
--library="C:/Users/mak/Documents/R/win-library/3.4" --install-tests
- installing source package 'rethinking' ...
** R
** data
** inst
** preparing package for lazy loading
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
there is no package called 'matrixStats'
ERROR: lazy loading failed for package 'rethinking' - removing 'C:/Users/mak/Documents/R/win-library/3.4/rethinking'
Error: Command failed (1)
from rethinking.
Appears to be an issue with R 3.4.2 maybe? I recently had to setup a new working environment for a colleague and pulled down 3.4.2. Experienced issues for virtually every package, rolled back to 3.4.1 and no issues since!
from rethinking.
@maksports (and anyone else stumbling across this thread)... What worked for me with R 3.4.3 was to install matrixStats independent of rethinking as in, install.packages("matrixStats")
. And if that fails (and if you're running this on Windows), try install.packages("matrixStats",type="win.binary")
.
from rethinking.
Related Issues (20)
- Rethink package is NOT getting installed HOT 8
- Sampling issue for the Cat Adoptions Survival model.
- Random walk in ulam HOT 2
- problem in precis command
- Can multiple outcomes be regressed on the same linear model?
- ulam fits missing @stanfit slot? HOT 2
- WAIC not computing from ulam() model, even with log_lik = TRUE HOT 4
- Problem installing cmdstanr HOT 1
- ulam fits giving odd errors HOT 4
- errata 2nd Edition page 130
- log_lik fails with matrices in models fit by ulam HOT 6
- Where is sim_globe, and the rest of the code shown in the videos? HOT 2
- Panda_nuts Nut-Cracking Frequency? HOT 6
- The garden of forking data - 2 blue from 1? HOT 3
- quap allows incorrect(?) definition with categorical variable HOT 1
- Consistent syntax error on map2stan/ulam issues HOT 2
- Some typos here and there
- rethinking cannot be installed: Rcpp fails to compile HOT 1
- sim() not working for models with simplex
- Saving ulam models won't save cmdstanr csv HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from rethinking.