Re: [R] interaction between clusterMap(), read.csv() and try() - try does not catch error

2016-08-08 Thread Strunk, Jacob (DNR)
(), read.csv() and try() - try does not catch error try is working fine. The problem is that your remote function is returning the try-error result, which the parallel infrastructure is interpreting as an error on the remote node, since the remote calling infrastructure is using try as well

Re: [R] interaction between clusterMap(), read.csv() and try() - try does not catch error

2016-08-08 Thread luke-tierney
try is working fine. The problem is that your remote function is returning the try-error result, which the parallel infrastructure is interpreting as an error on the remote node, since the remote calling infrastructure is using try as well. This could be implemented more robustly, but it would

[R] interaction between clusterMap(), read.csv() and try() - try does not catch error

2016-08-08 Thread Strunk, Jacob (DNR)
Hello I am attempting to process a list of csv files in parallel, some of which may be empty and fail with read.csv. I tend to use clusterMap as my go-to parallel function but have run into an interesting behavior. The behavior is that try(read.csv(x)) does not catch read errors resulting from