Suppose I have a norm $||x||$. Is there an R function or method that allows me to calculate the dual norm
$$||y||_* = \max_{x} x^Ty : ||x||\leq 1$$
My initial thought is that this falls under a constrained optimisation problem, so I imagine there's some useful packages to solve this, but I haven't been able to formulate how to do this.