There's a weird interaction I'm seeing with rethrowing errors involving rjava (similar to https://github.com/r-lib/rlang/issues/1619). Using something similar to the following in a pipeline triggers it ... (although this is not yet fully reproducible).
Re: LS work with non-existant directory.
testy <- function() {
f <- file.path(tempfile(), "filename")
call_env <- sys.call()
withCallingHandlers(
xlsx::write.xlsx(mtcars, f),
error = function(cond) {
cli::cli_abort("oops", parent = cond, call = call_env)
}
)
}
There's a weird interaction I'm seeing with rethrowing errors involving rjava (similar to https://github.com/r-lib/rlang/issues/1619). Using something similar to the following in a pipeline triggers it ... (although this is not yet fully reproducible).
Re: LS work with non-existant directory.
```R
testy <- function() {
f <- file.path(tempfile(), "filename")
call_env <- sys.call()
withCallingHandlers(
xlsx::write.xlsx(mtcars, f),
error = function(cond) {
cli::cli_abort("oops", parent = cond, call = call_env)
}
)
}
```