Closed Tazovsky closed 4 years ago
(Sorry, I missed this...)
I'd insert a %...T>% { browser() }
and look at the value of the .
variable.
data() %...T>% { browser() } %...>%
count(ip_id)
Or just %...T>% str
if you just want to know what the value looks like.
Since there is no way to easily retrieve value of fulfilled promise what is the recommended way to debug shiny promises?
Let's take for example following code:
So what do you recommend in debugging scenario where I'd like to check result of
data() %...>% count(ip_id)
? Usually (in non async app) I'd putbrowser()
and executedata() %...>% count(ip_id)
, but in this case it returns nothing:and final output - as discussed here - is not obtainable in easy and recommended way:
I know it is always possible - for debugging needs - to rewrite it to normal
%>%
pipeline withoutfuture
, but still case shown in example is very simple pipeline using%...>%
. Imagine now production app where reactivity and pipelines are much more complex, they are written usingpromises
and you have to debug them...