I'm working on R package. I set aliases for some functions this way:
foo <- function(){
do_something
}
foo_alias <- foo
I have the documentation for 'foo' function, so when typing:
?foo
I get the created documentation. Unfortunately it does not work for foo_alias. When I type:
?foo_alias
I get nothing. Is there any solution for that so the alias function inherits the documentation from foo?
You should add an alias to your documentation file:
Or if you use
roxygen2
: