Questions tagged [future.callr]

4 questions
2
votes
1 answer

How do I suppress a random number generation warning with future.callr?

I'm using the future.callr that creates a new thread(?) every time a future is requested so it is calculated separately and the main R script can keep moving on. I'm getting the following warning when my futures come back: Warning…
Roger-123
  • 2,232
  • 1
  • 13
  • 33
1
vote
1 answer

running background process in R Shiny

I wrote a script that is supposed to run a background process if a button is pressed. After the process is finished, I would like to work further with the results. Below is my script. The process in this script is 10 seconds sleeping followed by…
WJH
  • 539
  • 5
  • 14
0
votes
0 answers

sink function with future.callr

I have this R script: test.R library(future.callr) plan(callr) executeInternalActivity<-function(){ sink(file = "output.txt",append = TRUE) print(Sys.time()) Sys.sleep(3) print(Sys.time()) sink() } executeInternalActivity() …
Lev
  • 693
  • 1
  • 8
  • 24
0
votes
1 answer

Improve parallel performance with batching in a static-dynamic branching pipeline

BLUF: I am struggling to understand out how to use batching in the R targets package to improve performance in a static and dynamic branching pipeline processed in parallel using tar_make_future(). I presume that I need to batch within each dynamic…
mikeck
  • 3,534
  • 1
  • 26
  • 39