fable
fable copied to clipboard
Think about adding roxygen topics for "special" functions
I got a question in the workshop about the fact that you can't do ?drift
and pull up any information on the drift()
special. I get that this isn't a "real" function, but I wonder if you could somehow add a topic page so that ?drift
takes you to the ?NAIVE
page so you can still see something like this https://fable.tidyverts.org/reference/RW.html#specials
If drift()
can be used in multiple different model types, maybe it can be a landing page specific to drift
that can let you then click through to whatever specific model you are interested in using drift with
We did this with the join_by()
DSL a little bit here with aliases:
https://github.com/tidyverse/dplyr/blob/73742713bc61d4ef079e72b806143b23cb7c4871/R/join-by.R#L137
So that you can do ?closest
to get to the right place
Registering specials for clicking through different model types is a good approach that I hadn't considered for specials before. A difficulty of this is that the same special (by name) might apply to multiple models across multiple packages. I suppose the landing page could be specific to each package.