Closed talegari closed 5 months ago
As a package developer, I need to know if user is using a parallel backend or not. Is there a better way than parallel_flag = !("sequential" %in% class(future::plan())) ?
parallel_flag = !("sequential" %in% class(future::plan()))
You can see here for one approach.
By the way, I'm curious about your specific use case. Why, as a package developer, do you need to know if the user is using a parallel backend or not?
As a package developer, I need to know if user is using a parallel backend or not. Is there a better way than
parallel_flag = !("sequential" %in% class(future::plan()))
?