# Stan Installation Error or Coding Error

**URL:** <https://discourse.mc-stan.org/t/stan-installation-error-or-coding-error/3586>\
**Category:** RStan\
**Created:** [March 16, 2018, 5:54pm UTC](https://discourse.mc-stan.org/t/stan-installation-error-or-coding-error/3586 "2018-03-16T17:54:26Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![junxu2018](https://avatars.discourse-cdn.com/v4/letter/j/e5b9ba/32.png) [@junxu2018](https://discourse.mc-stan.org/u/junxu2018)\
**Post date:** [March 16, 2018, 5:54pm UTC](https://discourse.mc-stan.org/t/stan-installation-error-or-coding-error/3586/1 "2018-03-16T17:54:26Z")

</div>

Dear Stanians,  
It’s time of the year when I need to update both R and accordingly RStudio as well as rstan :( I did it, but my r codes written two years ago don’t work any more. I am not sure if that’s related to how I installed these three or any coding error in the Stan coding section. I am trying to simply estimate an ordered logit model using a Bayesian approach. Attached please find the log file. Somehow, the log file (sink()) wasn’t able to capture the few warning messages which I don’t think led to the errors in the log file that I attached and  
read as follows:  
DIAGNOSTIC(S) FROM PARSER:  
Warning (non-fatal): assignment operator \<- deprecated in the Stan language; use = instead.  
Warning (non-fatal): assignment operator \<- deprecated in the Stan language; use = instead.  
Warning (non-fatal): assignment operator \<- deprecated in the Stan language; use = instead.  
Warning (non-fatal): assignment operator \<- deprecated in the Stan language; use = instead.  
Warning (non-fatal): assignment operator \<- deprecated in the Stan language; use = instead.  
Warning (non-fatal): assignment operator \<- deprecated in the Stan language; use = instead.  
Warning (non-fatal): assignment operator \<- deprecated in the Stan language; use = instead.  
Warning (non-fatal): assignment operator \<- deprecated in the Stan language; use = instead.  
Warning (non-fatal): assignment operator \<- deprecated in the Stan language; use = instead.  
Warning: Deprecated function ‘categorical\_log’; please replace suffix ‘\_log’ with ‘\_lpdf’ for density functions or ‘\_lpmf’ for mass functions

[bayesGoLogitMod01aStan2018-03-16.txt](https://canada1.discourse-cdn.com/flex030/uploads/mc_stan/original/2X/e/ede9870fc6d40e539f067d4c9177abb903bfca4e.txt) (40.8 KB)

Thanks a lot for any help!

Jun Xu, PhD  
Professor  
Department of Sociology  
Ball State University  
Muncie, IN47306

---

<div class="post-metadata">

**Author:** ![Bob\_Carpenter](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.mc-stan.org/bob_carpenter/32/9230_2.png) [@Bob\_Carpenter](https://discourse.mc-stan.org/u/Bob_Carpenter)\
**Post date:** [March 19, 2018, 5:24am UTC](https://discourse.mc-stan.org/t/stan-installation-error-or-coding-error/3586/2 "2018-03-19T05:24:44Z")

</div>

I’m afraid I don’t understand what you’re asking here.

> [@junxu2018](#):
>
> Warning (non-fatal): assignment operator \<- deprecated in the Stan language; use = instead.

Just a warning, so you don’t need to fix it yet. It will break some time in the future when we finally remove \<-. The fix to get rid of the arning is just what the message says: replace ← with =.

> [@junxu2018](#):
>
> Warning: Deprecated function ‘categorical\_log’; please replace suffix ‘\_log’ with ‘\_lpdf’ for density functions or ‘\_lpmf’ for mass functions

Same thing. Use `categorical_lpmf` rather than `categorical_log`.
