hi @akhikolla I noticed when testing binsegRcpp that if you pass a large integer as the max_segments argument R may try to do a big memory allocation and freeze the computer (thrashing).
would be nice to automatically avoid that (kill the process instead of thrashing), but I'm not sure how.
@agroce did you ever encounter something similar? any ideas for a solution?
(of course the user could rewrite the code to exit early if there is a big memory allocation but it would be better if we did not require the user to rewrite the code)