processx
processx copied to clipboard
Execute and Control Subprocesses from R
From callr: ```r fun
This is not ready yet. Raw vectors are done, but the interesting part will be serializing to mmap-ed memory and back.
This could be in its own package, potentially, but since we pass the file descriptor to the subprocess as a processx connection, it is here now. Notes: - Poc implementation....
I.e. create and manage multiple subprocess and connect them with FIFOs / pipes. We can also call an R function to read out the output from the last command with...
Then we'll have better control over everything, e.g. whether we create a console on Windows, whether we output UTF-8, etc.
poc on Unix: ```r unlink("/tmp/fifo") system("mkfifo /tmp/fifo") script
I'd like to be able to run `callr::r_bg()` and then get the duration of time it took to run func, or at least time from opening the R session to...