saudiwin / ordbetareg_pack

Repository for R package ordbetareg, used to fit continuous data with lower and upper bounds.
Other
17 stars 3 forks source link

Syntax error with clean install of stack #20

Closed atkissoncj closed 5 months ago

atkissoncj commented 5 months ago

I got a new computer, so did a clean install of the Stan/rstan/cmdstanr stack. The model that I previously had working is no longer compiling. Maybe something wasn't done quite right in my install? Anyway, I receive the following error:

Syntax error in 'C:/Users/XXXX/AppData/Local/Temp/RtmpsHU8FO/model_42e711f2d392090e5892f6df506b3a25.stan', line 10, column 5 to column 6, parsing error:
   -------------------------------------------------
     8:     *   an integer sequence from start to end
     9:     */
    10:    int[] sequence(int start, int end) {
              ^
    11:      array[end - start + 1] int seq;
    12:      for (n in 1:num_elements(seq)) {
   -------------------------------------------------

An identifier is expected as a function name.

Error: Syntax error found! See the message above for more information.

My R version information is

platform       x86_64-w64-mingw32               
arch           x86_64                           
os             mingw32                          
crt            ucrt                             
system         x86_64, mingw32                  
status                                          
major          4                                
minor          3.3                              
year           2024                             
month          02                               
day            29                               
svn rev        86002                            
language       R                                
version.string R version 4.3.3 (2024-02-29 ucrt)
nickname       Angel Food Cake 

Do you need any other info?

Thanks!

saudiwin commented 5 months ago

Can you compile and run any other cmdstanr programs?

On Mon, Mar 18, 2024 at 3:57 PM atkissoncj @.***> wrote:

I got a new computer, so did a clean install of the Stan/rstan/cmdstanr stack. The model that I previously had working is no longer compiling. Maybe something wasn't done quite right in my install? Anyway, I receive the following error:

Syntax error in 'C:/Users/XXXX/AppData/Local/Temp/RtmpsHU8FO/model_42e711f2d392090e5892f6df506b3a25.stan', line 10, column 5 to column 6, parsing error:

 8:     *   an integer sequence from start to end
 9:     */
10:    int[] sequence(int start, int end) {
          ^
11:      array[end - start + 1] int seq;
12:      for (n in 1:num_elements(seq)) {

An identifier is expected as a function name.

Error: Syntax error found! See the message above for more information.

My R version information is

platform x86_64-w64-mingw32 arch x86_64 os mingw32 crt ucrt system x86_64, mingw32 status major 4 minor 3.3 year 2024 month 02 day 29 svn rev 86002 language R version.string R version 4.3.3 (2024-02-29 ucrt) nickname Angel Food Cake

Do you need any other info?

Thanks!

— Reply to this email directly, view it on GitHub https://github.com/saudiwin/ordbetareg_pack/issues/20, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACTVVOOJK2TY4MMTFD2WOLLYY36FHAVCNFSM6AAAAABE3YH6W6VHI2DSMVQWIX3LMV43ASLTON2WKOZSGE4TENBVGM2DQMQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

atkissoncj commented 5 months ago

Yes, I can. For example, I can compile and run the example model at Getting started with CmdStanR • cmdstanr (mc-stan.org) https://mc-stan.org/cmdstanr/articles/cmdstanr.html

Curtis Atkisson

On Mon, Mar 18, 2024 at 11:09 AM Robert Kubinec @.***> wrote:

Can you compile and run any other cmdstanr programs?

On Mon, Mar 18, 2024 at 3:57 PM atkissoncj @.***> wrote:

I got a new computer, so did a clean install of the Stan/rstan/cmdstanr stack. The model that I previously had working is no longer compiling. Maybe something wasn't done quite right in my install? Anyway, I receive the following error:

Syntax error in 'C:/Users/XXXX/AppData/Local/Temp/RtmpsHU8FO/model_42e711f2d392090e5892f6df506b3a25.stan', line 10, column 5 to column 6, parsing error:

8: an integer sequence from start to end 9: / 10: int[] sequence(int start, int end) { ^ 11: array[end - start + 1] int seq; 12: for (n in 1:num_elements(seq)) {

An identifier is expected as a function name.

Error: Syntax error found! See the message above for more information.

My R version information is

platform x86_64-w64-mingw32 arch x86_64 os mingw32 crt ucrt system x86_64, mingw32 status major 4 minor 3.3 year 2024 month 02 day 29 svn rev 86002 language R version.string R version 4.3.3 (2024-02-29 ucrt) nickname Angel Food Cake

Do you need any other info?

Thanks!

— Reply to this email directly, view it on GitHub https://github.com/saudiwin/ordbetareg_pack/issues/20, or unsubscribe < https://github.com/notifications/unsubscribe-auth/ACTVVOOJK2TY4MMTFD2WOLLYY36FHAVCNFSM6AAAAABE3YH6W6VHI2DSMVQWIX3LMV43ASLTON2WKOZSGE4TENBVGM2DQMQ>

. You are receiving this because you are subscribed to this thread.Message ID: @.***>

— Reply to this email directly, view it on GitHub https://github.com/saudiwin/ordbetareg_pack/issues/20#issuecomment-2004174028, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANULXBGVTBL6EGLYX4JVJOLYY37TDAVCNFSM6AAAAABE3YH6W6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMBUGE3TIMBSHA . You are receiving this because you authored the thread.Message ID: @.***>

saudiwin commented 5 months ago

It's going to be tough for me to work on this unfortunately as I don't have a windows machine, only linux + Mac OS X.

atkissoncj commented 5 months ago

If you want to guide me as to what "work on this" means, I can do the "working on this".

Curtis Atkisson

On Thu, Mar 28, 2024 at 4:11 AM Robert Kubinec @.***> wrote:

It's going to be tough for me to work on this unfortunately as I don't have a windows machine, only linux + Mac OS X.

— Reply to this email directly, view it on GitHub https://github.com/saudiwin/ordbetareg_pack/issues/20#issuecomment-2024932376, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANULXBGGHH53ZBX7Z7VRQZLY2P3ERAVCNFSM6AAAAABE3YH6W6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRUHEZTEMZXGY . You are receiving this because you authored the thread.Message ID: @.***>

saudiwin commented 5 months ago

So I did some looking into it, and this is actually an issue with brms, not ordbetareg. It looks like if you update to the development version of brms the issue will be resolved. See thread here:

https://discourse.mc-stan.org/t/problem-with-brms-multithreading-on-mac/33970/6

Closing issue as it does not pertain to ordbetareg directly (thankfully).

atkissoncj commented 5 months ago

Excellent!

Curtis Atkisson

On Sun, Mar 31, 2024 at 10:37 PM Robert Kubinec @.***> wrote:

So I did some looking into it, and this is actually an issue with brms, not ordbetareg. It looks like if you update to the development version of brms the issue will be resolved. See thread here:

https://discourse.mc-stan.org/t/problem-with-brms-multithreading-on-mac/33970/6

Closing issue as it does not pertain to ordbetareg directly (thankfully).

— Reply to this email directly, view it on GitHub https://github.com/saudiwin/ordbetareg_pack/issues/20#issuecomment-2029194410, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANULXBAXZ36OE6KV4EWMGNDY3DXCZAVCNFSM6AAAAABE3YH6W6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDAMRZGE4TINBRGA . You are receiving this because you authored the thread.Message ID: @.***>