Questions tagged [callr]
20 questions
0
votes
0 answers
rmarkdown render NSE function fails only inside callr
I seem to have a weird combination of NSE, rmarkdown and callr, similar in flavor to Is it possible to disable `callr` for RMarkdown?.
When I set a value to a variable to use it in something similar to a filter call implemented using NSE via nested…

rmflight
- 1,871
- 1
- 14
- 22
0
votes
1 answer
Use functions of an R package loaded with load_all() in callr::r() and callr::r_bg()
I'm devoloping an R package and want to run some of the functions in the package under development in the background, using callr::r() or callr::r_bg().
As an example, I created a package mytest with only one function
hello <- function() {
…

josep maria porrà
- 1,198
- 10
- 18
0
votes
1 answer
How to set time out in multidplyr
I inconsistently get following error when using multidplyr (ie, for the same data sometimes I get the error, sometimes not):
Error in rs_init(self, private, super, options, wait, wait_timeout) :
Could not start R session, timed out
My setting…

ava
- 840
- 5
- 19
0
votes
0 answers
R process$new write stdout and stderr to same file
In my R code I call another R script as a separate process like this
rp <- callr::process$new(command = "rcode.R", args = c("--date", date)
, stdout = 'logfile.txt', stderr = 'logfile.txt'
, cleanup = FALSE
,…

sjd
- 1,329
- 4
- 28
- 48
0
votes
1 answer
Simple Shiny app with invalidateLater() incorrectly drops persistent background processes
I am trying to write a minimal Shiny app that maintains a persistent external background process. For reasons specific to the full-sized use case, I am tracking the PID in a text file instead of just using the processx handle. When I start the app,…

landau
- 5,636
- 1
- 22
- 50