I guess an alternative workaround would be to pre process all the necessary R calculations before hand in one single call to R and then store them in memory in AIMMS and use them on demand. It’s never a good idea to be calling an application several times very often from another one. This
Source: Re: [AIMMS] Re: Rlink and Memory Usage: How to stop RLink from eating up all my memory