Closed klin333 closed 1 year ago
Hi, even with fix of #44, this problem still persisted.
However, a word around is to force no export of the special character function, which in my case I probably don't want exported anyway.
modules::export("^[a-zA-Z0-9_\\.]+")
`[` <- function(..., drop = FALSE) .Primitive("[")(..., drop = drop)
foo <- function() {
array(1, dim = c(1, 1))[1, ] # check no drop by default
}
Hi. Thanks for bringing this up.
To understand the issue better: you are using a function name like [
inside the module which you do not wish to export, correct?
In any case, we should not see this error.
Can you pls check a potential fix with:
remotes::install_github("wahani/modules", ref = "fix/export-of-single-punct-name")
looks good thanks
@klin333 fyi: On it's way to CRAN
Hi,
Creating a module with special character functions would crash... Not sure what can be done about this.