callr 3.7.6
CRAN release: 2024-03-25
- If the
CALLR_NO_TEMP_DLLS=trueenv var is set then callr does not copy the dll the client DLL files from, in the subprocess. By default callr copies the DLL file that drives the callr subprocess into a temporary directory and loads it from there (#273).
callr 3.7.4
CRAN release: 2024-02-19
The
r_session$get_running_time()method now returns the correct values, as documented (#241, @djnavarro).callr now uses fully qualified function calls in the subprocess to avoid interference with functions defined in the global environment. I.e.
base::stderr()instead ofstderr(). Closes #246.
callr 3.7.3
CRAN release: 2022-11-02
- Errors from callr now include the standard output (in
$stdout) and standard error (instderr) again. The standard output and error are also printed on error in non-interactive sessions, and a note is printed about them in interactive sessions.
callr 3.7.2
CRAN release: 2022-08-22
- New function
add_hook()to hook into the callr process startup and options. This is for experts and it is also currently experimental (#203, @klmr).
callr 3.7.1
CRAN release: 2022-07-13
When copying existing startup files, an additional newline is appended to protect against a missing newline at the end of the file. This would cause R ignore that line (#205).
Serialization of objects passed between sessions now uses
compress=FALSEby default. The default can be changed by setting thecallr.compress_transportoption (#223, @dfalbel).We have revamped callr’s error objects, with lots of improvements to the output.
callr 3.7.0
CRAN release: 2021-04-20
Reporting errors is much faster now (#185).
The
user_profileoption ofr_vanilla()defaults toFALSEnow (#194).It is now possible to set R environment variables (
R_ENVIRON_USER,R_PROFILE_USER, etc.) via theenvargument (#193).
callr 3.6.0
CRAN release: 2021-03-28
callr now supports starting an R process with a different architecture, so on Windows 64-bit R can start a 32-bit R background process, and vice-versa (#95).
callr now handles symbolic arguments properly, and does not evaluate them. E.g.
callr::r(function(x) x, list(quote(foobar)))works now (#175).callr::r_sessiondoes not leak file descriptors now in the sub-process (#184).
callr 3.5.1
CRAN release: 2020-10-13
-
callr::r_sessionnow handles large messages from the subprocess well (#168).
callr 3.4.4
CRAN release: 2020-09-07
- An
r_sessionnow exits if the load hook errors. This generates an error if the session is started withwait = TRUE. Forwait = FALSEthe first$read()operation will return with an error (#162).
callr 3.4.3
CRAN release: 2020-03-28
-
default_repos()now returns a list ifgetOption("repos")is a list, and a vector otherwise, on R 4.x.y as well.
callr 3.4.2
CRAN release: 2020-02-12
- Improved error messages. Error messages are now fully printed after an error. In non-interactive sessions, the stack trace is printed as well.
callr 3.4.1
CRAN release: 2020-01-24
callr is now more careful when loading the local
.Rprofilein the subprocess. This fixes issues with packrat and renv that use.Rprofilefor setup (#139).callr functions fail early if environment file is missing (#123, @jdblischak)
callr 3.4.0
CRAN release: 2019-12-09
All callr functions and background processes properly clean up temporary files now (#104).
callr now uses a more principled setup for the library path, and restores the related environment variables in the child process. This is a breaking change if you relied on having the library set in a
system()subprocess of the callr subprocess (#114).Better printing of
rlang_errors that happened in the subprocess.The stacking of error objects is slightly different now, as we keep the unmodified error from the subprocess in
$parent$error.callr now loads
.Rprofilefiles from the current working directory by default. This works better with packrat, renv, and other software that relies on a local profile for initialization (#131).
callr 3.3.1
CRAN release: 2019-07-18
r_sessionnow avoids creatingdataandenvobjects in the global environment of the subprocess.New
$debug()method forr_sessionto inspect the dumped frames in the subprocess, after an error.
callr 3.3.0
CRAN release: 2019-07-04
callr now sets the
.Last.errorvariable for every uncaught callr error to the error condition, and also sets.Last.error.traceto its stack trace. If the error originates in the subprocess, then.Last.erroris a hierarchical error object, and.Last.error.tracemerges the traces from the two processes. See theREADME.mdfor an example.New
$traceback()method forr_session, to runtraceback()in the subprocess, after an error.A callr subprocess now does not load any R packages by default.
New vignette, that showcases
r_session.
callr 3.2.0
CRAN release: 2019-03-15
r(),rcmd()andrscript()can now redirect the standard error of the subprocess its standard output. This allows to keep them correctly interleaved. For this, you need to either set thestderrargument to the special string"2>&1", or to the same output file as specified forstdout.r(),rcmd()andrscript()now pass...arguments toprocessx::run().r_bg()andrcmd_bg()pass...arguments to theprocessx::processconstructor. Forr_process,rcmd_processandrscript_processextra arguments can be specified asoptions$extra, these are also passed to theprocessx::processconstructor (#100).
callr 3.1.1
CRAN release: 2018-12-21
r(),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 newdefault_repos()function is used to setreposin the subprocess.
callr 3.1.0
CRAN release: 2018-12-10
New
rscript()function andrscript_processclass to execute R scripts viaRscript(#40, #81).Library paths are now correctly set up for
system()(and similar) calls from the callr subprocesses (#83, #84).Pass
options("repos")to the child process as is, without checking. Closes #82.r_session$run_with_output()now returns an S3 object with classcallr_session_result.r_session$run*()handle interrupts properly. It tries to interrupt the background process fist, kills it if it is not interruptible, and then re-throws the interrupt condition, going back to the top level prompt if the re-thrown condition is uncaught.
callr 2.0.4
CRAN release: 2018-05-15
pkgdown web site at https://callr.r-lib.org (#52, #53).
callr users
.Renvironfiles now (andR_ENVIRON_USERas well), but overrides the library path, as requested inr(), etc. (#30).callr now handles the case when the subprocess calls
quit().callr now uses the processx package, instead of embedded code, to create and control processes.
callr 2.0.2
CRAN release: 2018-02-11
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
stdoutorstderr. The client sometimes didn’t wait for the server, and callr failed with ERROR_PIPE_BUSY (231, All pipe instances are busy).
callr 2.0.0
CRAN release: 2018-01-28
Run R or
R CMDin the background, seer_bg(),rcmd_bg(), and alsor_processandrcmd_processThe defaults for
r()are safer now, the match the defaults ofr_safe().r_safe()is kept for compatibility.r_copycat()has the oldr()defaults.The defaults for
rcmd()are safer now, the match the defaults ofrcmd_safe().rcmd_safe()is kept for compatibility.rcmd_copycat()has the oldrcmd()defaults.Support block callbacks, in addition to line callbacks. Block callbacks are called for arbitrary chunks of output, even without a newline
Support timeouts, via the
timeoutargumentFix bug when
stdoutandstderrare redirected to the same filercmd_safe_env()to allow extending the environment variables set in safe modercmd()gets afail_on_statusargumentrcmd()gets anechoargument to potentially show the command to be run on the screen (#15)rcmd()gets awdargument to set the working directory