Menu

Error Message Involving Internal Call to paste()

runjags
2018-09-19
2018-10-04
  • Jeff Bromaghin

    Jeff Bromaghin - 2018-09-19

    A call to run.jags() is producing the following error message:
    Error in paste(value[[i]], collapse = ", ") :
    result would exceed 2^31-1 bytes

    I tried passing the argument sample = 0 and the error persisted, so it is happening during model creation. The model is large and has some 3-dimensional arrays. I tried removing arrays from the list of monitored parameters, but the error persisted.

    Does anyone have an idea of what is causing this error or possible options to avoid it?

    Thank you,
    Jeff

     
  • Matt Denwood

    Matt Denwood - 2018-10-04

    Hi Jeff

    Apologies for the delay in replying. The error is happening while translating your data from the R representation to a character representation (as required to be read by JAGS) - I have never seen this error before but I guess the 3 dimensional arrays in your data are quite large and the error is coming from that.

    In order to get around the problem you could try to provide the data to the run.jags function as a character string rather than a list - see ?dump for a way to generate character representations of R objects. The way in which runjags creates these character strings is not very efficient so could (and will!) be improved in a future version.

    Cheers,

    Matt

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.