I\'m trying to call a simple python script from within R using system2(). I\'ve read some information I found vague that said if \'too much\' memory is used, it won\'t work.
Have you tried embedding the function call within the apply function, rather than a for loop?
I've had some pieces of code that ran the system out of memory in a for loop run perfectly with apply. It might help?