Skip to content

How can one figure out the current plan? #600

Answered by HenrikBengtsson
jan-glx asked this question in Q&A
Discussion options

You must be logged in to vote

Just call plan() without arguments, e.g.

> plan()
sequential:
- args: function (..., envir = parent.frame())
- tweaked: FALSE
- call: NULL

It's documented in https://future.futureverse.org/reference/plan.html#value, but now I see the docs could be more clear about this.

If you have a nested setup, you can get the list of future plans, using the non-documented(?) plan("list"):

> plan(list(sequential, multisession))

> plan()
sequential:
- args: function (..., envir = parent.frame())
- tweaked: FALSE
- call: plan(list(sequential, multisession))

> plan("list")
List of future strategies:
1. sequential:
   - args: function (..., envir = parent.frame())
   - tweaked: FALSE
   - call: plan(list(s…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jan-glx
Comment options

Answer selected by jan-glx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants