Closed dcaud closed 2 years ago
I am not sure why you think this is a callr problem.
@gaborcsardi I don't think this is necessarily a callr problem. I'm just looking for a solution. Can you suggest a better place to get assistance?
I am not familiar with these packages, sorry.
I've got a nested call to future_lapply that processes in parallel. It works great and fast!
The problem is that reporting on progress in sequence is proving difficult. The following Shiny app has a progress indicator that instead of incrementing like 1,2,3, etc. increments out of order like 1, 5, 2, etc.
Any ideas on how to report progress in order (even if the processing is down out of order)? A simple counter increment doesn't work (
increment <- 0; increment <- increment + 1
) because of scoping rules.Switching to
plan(multisession)
increments in order as expected, but that removes the parallel processing. This is why I'm posting here instead of in the ipc library, but I'm happy to post over there if needed.