R constantly crashing after rstan updates

Operating System: OSX 10.12.5
Interface Version:
Compiler/Toolkit:

Ever since I updated rstan and followed all instructions including “brew” on my terminal, R is crashing loading my data or just running very simple code.

It must be related, there is no other explanation.

Has anyone encountered this?

Running R 3.4.0

I was interested in trying the new “bayesplot” package…

I followed instructions found here…

I brought my computer in to Apple to be sure it wasn’t a coincidence and there was an underlying hardware issue-- there’s nothing wrong with my computer.

R is crashing running non RStan code? I think there would be another explanation but we would need way more information about the problem to figure out what it is.

I misread your post… I was running basic recoding of variables,

What do you need.

I can’t reliably do anything in R…

I tried uninstalling R and re-installing. A few times. It hangs then crashes after I install packages and start coding.

From source or from the R for OSX binary?

Both… some source some R cran, etc

here are my install codes:

install.packages(“car”)
library(car)
install.packages(“foreign”)
library(foreign)
install.packages(“sm”)
library(sm)
install.packages(“runjags”)
library(runjags)
install.packages(“rjags”)
library(rjags)
install.packages(“lme4”)
library(lme4)
install.packages(“lattice”)
library(lattice)
install.packages(“effects”)
library(effects)
install.packages(“glmer2stan”)
library(glmer2stan)
library(devtools)
install.packages(“DAMisc”)
library(DAMisc)
install.packages(“ggplot2”)
library(ggplot2)
install.packages(“MCMCpack”)
library(MCMCpack)
install.packages(“nmle”)
library(nlme)
install.packages(“lmerTest”)
library(lmerTest)
install.packages(“haven”)
library(haven)

devtools::install_github(“stan-dev/shinystan”, build_vignettes = TRUE)
install.packages(c(‘devtools’,‘coda’,‘mvtnorm’,‘loo’))
library(devtools)
library(“shinystan”)
#install_github(“rmcelreath/rethinking”)

or

install.packages(c(‘coda’,‘mvtnorm’,‘loo’))
options(repos=c(getOption(‘repos’), rethinking=‘http://xcelab.net/R’))
install.packages(‘rethinking’,type=‘source’)
options(repos=c(getOption(‘repos’), glmer2stan=‘http://xcelab.net/R’))
install.packages(‘glmer2stan’,type=‘source’)
library(“glmer2stan”)

devtools::install_github(“stan-dev/bayesplot”, dependencies = TRUE, build_vignettes = TRUE)
install.packages(“bayesplot”)
library(bayesplot)
rstan_options(auto_write = TRUE)
options(mc.cores = parallel::detectCores())

Well, I would try uninstalling brew since it is not needed for Stan. Install Xcode, probably reinstall the R binary again, etc.

ok, I assume I need to uninstall homebrew from the terminal?

I have Xcode already… =\

That seems (so far) to have done the trick. Thanks…