If spec is a function, it is wrapped with as_rank_weight().
Examples
nm <- "tmp_rank_demo"
register_rank_weight(nm, function(ranks) rep(1 / length(ranks), length(ranks)))
nm %in% rank_weight_names()
#> [1] TRUE
If spec is a function, it is wrapped with as_rank_weight().
nm <- "tmp_rank_demo"
register_rank_weight(nm, function(ranks) rep(1 / length(ranks), length(ranks)))
nm %in% rank_weight_names()
#> [1] TRUE