Giter Site home page Giter Site logo

Comments (7)

profredowl avatar profredowl commented on July 22, 2024

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.

rasmusab avatar rasmusab commented on July 22, 2024

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.

profredowl avatar profredowl commented on July 22, 2024

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.

rasmusab avatar rasmusab commented on July 22, 2024

Yeah, it seems like it was a pretty short-lived bug in base R... Great that it works now! :)

from rethinking.

maksports avatar maksports commented on July 22, 2024

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.

cmpgervais avatar cmpgervais commented on July 22, 2024

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.

JohnsonBrent avatar JohnsonBrent commented on July 22, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.