Hi @wahani. Thank you for the great package!
I've found one issue while trying to use extend function with module sourced from the file.
Reproducible example:
# module.R
export("bar")
bar <- function() "bar"
foo <- function() "foo"
When sourcing the module with use and trying to extend it:
test_module <- use("module.R")
extend(
test_module, {
stopifnot(foo() == "foo")
})
I get:
Error in parse(text = c("{", originalExpr, additionalExpr, "}")) :
<text>:3:41: unexpected '<'
2: structure(expression(export("bar"), bar <- function() "bar",
3: foo <- function() "foo"), srcfile = <
^
I'd be happy if you could take a closer look at it. Thank you.
Hi @wahani. Thank you for the great package!
I've found one issue while trying to use
extendfunction with module sourced from the file.Reproducible example:
When sourcing the module with
useand trying to extend it:I get:
I'd be happy if you could take a closer look at it. Thank you.