Closed kamilzyla closed 2 years ago
Thanks for the report. It’s actually unrelated to #263 even though it looks so similar. This error is due to the code that tries to find S3 generics. To do this it traverses the syntax tree of each function, and apparently it fails to account for missing arguments in the case where a function isn’t a simple name. The fix is straightforward, I just hope that I am not missing other cases with this logic.
Once the builds have run, you can install this bugfix build via
install.packages('box', repos = 'https://klmr.r-universe.dev')
Error description
Assume we have the following
module.R
:Now
box::use(./module)
results inError in box::use(./module) : argument "fun" is missing, with no default
. The problem can be fixed by removingtags$
or the trailing comma:The example was inspired by
shiny::tags$span()
which accepts trailing commas, buttags
don't need to be defined to encounter the issue above.The issue seemed related to #263 which I reported earlier, but it still occurs on the
dev
branch (tested after installing withremotes::install_github("klmr/box@9fb08c6")
).R version
‘box’ version
1.1.9000