Stan() function does not work after updating to R 4.0.3

I tried running file.name(~~~), restarted R, and tried again. It seemed okay but eventually gave me errors.

SAMPLING FOR MODEL β€˜73fc79f8b1915e8208c736914c86d1a1’ NOW (CHAIN 4).
Chain 4:
Chain 4: Gradient evaluation took 0 seconds
Chain 4: 1000 transitions using 10 leapfrog steps per transition would take 0 seconds.
Chain 4: Adjust your expectations accordingly!
Chain 4:
Chain 4:
Chain 4: Iteration: 1 / 2000 [ 0%] (Warmup)
Chain 4: Iteration: 200 / 2000 [ 10%] (Warmup)
Chain 4: Iteration: 400 / 2000 [ 20%] (Warmup)
Chain 4: Iteration: 600 / 2000 [ 30%] (Warmup)
Chain 4: Iteration: 800 / 2000 [ 40%] (Warmup)
Chain 4: Iteration: 1000 / 2000 [ 50%] (Warmup)
Chain 4: Iteration: 1001 / 2000 [ 50%] (Sampling)
Chain 4: Iteration: 1200 / 2000 [ 60%] (Sampling)
Chain 4: Iteration: 1400 / 2000 [ 70%] (Sampling)
Chain 4: Iteration: 1600 / 2000 [ 80%] (Sampling)
Chain 4: Iteration: 1800 / 2000 [ 90%] (Sampling)
Chain 4: Iteration: 2000 / 2000 [100%] (Sampling)
Chain 4:
Chain 4: Elapsed Time: 0.048 seconds (Warm-up)
Chain 4: 0.033 seconds (Sampling)
Chain 4: 0.081 seconds (Total)
Chain 4:
Warning message:
In system(paste(CXX, ARGS), ignore.stdout = TRUE, ignore.stderr = TRUE) :
β€˜C:/rtools40/usr/mingw_/bin/g++’ not found

That’s all fine, that warning is harmless and will be removed in the next version.

Your installation should be working and good to go now, sorry for the hassle in getting here!

1 Like

Ah, I now see my stan() function works for my example!!! It was not a hassle at all! I cannot thank you enough, Andrew (@andrjohns )! I appreciate your time in solving this issue! :)

1 Like