klmr / box

Write reusable, composable and modular R code
https://klmr.me/box/
MIT License
829 stars 47 forks source link

`box::help` does not work on aliases of attached names #297

Open klmr opened 1 year ago

klmr commented 1 year ago

MWE

# foo.r

#' This is a test
#' @export
bar = function () 'hi'
box::use(./foo[baz = bar])
box::help(baz)

Observed result

Error in box::help(baz) :
  no documentation available for “baz” in module “./foo”

Expected behaviour

Display the documentation of foo$bar.

klmr commented 10 months ago