Archived
1
0
Fork
You've already forked pipeline
0

rjava / rlang interaction on errors within pipeline #23

Open
opened 2025年12月03日 17:50:41 +01:00 by TimTaylor · 1 comment

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) } ) } ```
Author
Owner
Copy link

I've improved things with 448c3d7d04 but leaving this open for now as have left a 'TODO' to revisit.

I've improved things with https://codeberg.org/TimTaylor/pipeline/commit/448c3d7d0461ce319282c65b5e7f27b205e3491e but leaving this open for now as have left a 'TODO' to revisit.
Commenting is not possible because the repository is archived.
No Branch/Tag specified
main
hackathon
pages
no-scenarios
seed-handling
constants
fix
attach
refactor
asis
v0.0.0.9165
v0.0.0.9164
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
TimTaylor/pipeline#23
Reference in a new issue
TimTaylor/pipeline
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?