[help] tar_watch()
hangs unexpectedly
#1151
Replies: 4 comments 3 replies
-
Would you post a reprex and walk me through how to cause the hanging? |
Beta Was this translation helpful? Give feedback.
-
Closing because this is an old thread, but let me know if you need anything else. |
Beta Was this translation helpful? Give feedback.
-
I'm noticing that this issue doesn't happen when calling |
Beta Was this translation helpful? Give feedback.
-
I still don't have any answers as to why my Instead of calling I've also added the below snippet to my project-local if (interactive()) {
tar_watch <- function(...) {
targets::tar_watch(
...,
display = "graph",
targets_only = TRUE,
seconds = 20,
port = 54716,
background = FALSE
)
}
} I've tested this session over several days and it has been working great for me. |
Beta Was this translation helpful? Give feedback.
-
Help
Description
I've noticed that my local
tar_watch()
session will occasionally freeze during development. I haven't been able to pin point exactly what is causing it to hang. It seems related to running code interactively while debugging. For example, none of thetar_*()
functions appear to cause issues, but if I try running code line-by-line within one of my function definitions while testing, then my local shiny app will freeze (the screen goes gray, and the refresh bubbles in the top left are stuck in an infinite loop).Hoping someone can help me understand what is causing this to happen so I can avoid having to re-run
tar_watch()
a bunch of times! Thank you.Beta Was this translation helpful? Give feedback.
All reactions