Skip to content

bad error handling when input file cannot be found #1

@eschen42

Description

@eschen42

When an input file cannot be found, I get the following message:

Error { message: promise already under evaluation: recursive default argument reference or earlier problems? , call: read_data_frame(xcms_data_in, sprintf(\"%s input\", xcms_data_type)) }

I need a test to execute this path and to fix the issue, which may stem from setting the default value for an argument to a nested function to the value of a variable in the enclosing scope; e.g., this gives the promise error:

foo <- "hello"
bar <- function(foo = foo) { print(foo) }
bar()

but this does not:

foo <- "hello"
bar <- function(fee = foo) { print(fee) }
bar()

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions