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)
- Feature request: Add a template for shifted lognormal distribution HOT 2
- Does the rethinking package work using the newest version of R - 4.2.2? HOT 1
- Nevermind HOT 2
- Eliminating variable breaks ulam model HOT 2
- Smooth functions of a variable - modeling syntax HOT 2
- Problem with R code 9.14 on Mac OS
- problems loading rethinking HOT 1
- Zero Inflated Negative Binomial Model HOT 1
- difference in n_eff of population mean depending on model specification HOT 3
- Comparison length > 1 in `cv_data_slice`.
- character limit in translating to stan with ulam()? HOT 3
- Problem with defining imputed variable as a vector in generated stan code HOT 2
- link() not handling id variable values not in original data HOT 2
- Gamma parameterisation
- sim() from model with missing value imputation breaks with error "function merge_missing not found" HOT 2
- 'reject' stan command conflicts with UCBadmit data
- Chapter 16 Lynx Hare Model Change with Stan 2.33.0? HOT 10
- How to construct a spline model using ulam() HOT 4
- cannot install rethinking HOT 1
- Error in link(), R code 4.67 HOT 1
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.