You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Now box::use(./module) results in Error in box::use(./module) : argument "fun" is missing, with no default. The problem can be fixed by removing tags$ or the trailing comma:
# Works either wayheader<-function() tags$span("Hello!")
header<-function() span("Hello!", )
The example was inspired by shiny::tags$span() which accepts trailing commas, but tags 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 with remotes::install_github("klmr/box@9fb08c6")).
R version
platform x86_64-pc-linux-gnu
arch x86_64
os linux-gnu
system x86_64, linux-gnu
status
major 4
minor 1.1
year 2021
month 08
day 10
svn rev 80725
language R
version.string R version 4.1.1 (2021-08-10)
nickname Kick Things
‘box’ version
1.1.9000
The text was updated successfully, but these errors were encountered:
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
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
The text was updated successfully, but these errors were encountered: