r_bg(), etc. now handle messages from the cliapp package properly. They used to make the R session exit.
Better default for the
reposoption in callr subprocesses. callr no longer creates duplicate "CRAN" entries. By default the new
default_repos()function is used to set
reposin the subprocess.
rscript_processclass to execute R scripts via
Library paths are now correctly set up for
system()(and similar) calls from the callr subprocesses (#83, #84).
options("repos")to the child process as is, without checking. Closes #82.
r_session$run_with_output()now returns an S3 object with class
r_session$run*()handle interrupts properly. It tries to interrupt the background process fist, kills it if it is not interruptable, and then re-throws the interrupt condition, going back to the top level prompt if the re-thrown condition is un-caught.
r_sessionclass: a background R session you can send commands to (#56).
Rewrote passing the library path to the subprocess (#73, #75)
Retain names of the
reposoption (#67, @jennybc)
pkgdown web site at https://callr.r-lib.org (#52, #53).
.Renvironfiles now (and
R_ENVIRON_USERas well), but overrides the library path, as requested in
r(), etc. (#30).
callr now handles the case when the subprocess calls
callr now uses the processx package, instead of embedded code, to create and control processes.
The default behavior on error can be set now with the
Better error message if the child R process crashes or gets killed. (#41)
rcmd_bgnow have the
Fix a bug with R-devel, caused by the change on 2018-02-08: https://github.com/wch/r-source/commit/924582943706100e88a11d6bb0585d25779c91f5 #37, #38
Fix a race condition on Windows, when creating named pipes for stdout or stderr. The client sometimes didn't wait for the server, and callr failed with ERROR_PIPE_BUSY (231, All pipe instances are busy).
Fix compilation issues on CRAN's Solaris machine
Fix a test failure on CRAN's macOS machine
Run R or R CMD * in the background, see
rcmd_bg(), and also
The defaults for
r()are safer now, the match the defaults of
r_safe()is kept for compatibility.
r_copycat()has the old
The defaults for
rcmd()are safer now, the match the defaults of
rcmd_safe()is kept for compatibility.
rcmd_copycat()has the old
Support block callbacks, in addition to line callbacks. Block callbacks are called for arbitrary chunks of output, even without a newline
spinnerargument to show a spinner in
Support timeouts, via the
Fix bug when stdout and stderr are redirected to the same file
rcmd_safe_env()to allow extending the environment variables set in safe mode
echoargument to potentially show the command to be run on the screen (#15)
wdargument to set the working directory
First public release.