I think we can make reports more customisable by changing the way we reference tables in our knits / Mojito.
Currently tables are referenced based on the client ID and subject types defined in wave_params
. This makes for a tidy wave_params
object:
wave_params <- list(
client_id="client",
wave_id="w143",
start_date="2020-05-25 11:33:00",
stop_date="2020-06-13 14:42:22",
time_grain="days",
subject="usercookie",
recipes=c("Control","Treatment")
)
Whilst slightly uglier, I think we can make Mojito easier-to-adopt through customisable table references, like so:
wave_params <- list(
wave_id="w143",
start_date="2020-05-25 11:33:00",
stop_date="2020-06-13 14:42:22",
time_grain="days",
tables=list(
exposure="mojito.exposures_usercookie",
goal="mojito.client_conversions_usercookie",
segment="mojito.segments_usercookie",
failure="mojito.recipe_errors_2"),
recipes=c("Control","Treatment")
)