In general for a simple smooth closed curve ${\bf R} = {\bf R}(t)$ traversed counterclockwise, let ${\bf v} = \frac{d{\bf R}}{dt}$ be the velocity vector and ${\bf a} = \frac{d{\bf v}}{dt}$ the acceleration. The curve is convex if $({\bf v} \times {\bf a})_3 \ge 0$ everywhere. For the polar curve $r = r(\theta)$ parametrized by $\theta$, if ${\bf u}_r$ and ${\bf u}_\theta$ are the unit vectors in the radial and counterclockwise directions, we have {\bf v} = r' {\bf u}_r + r {\bf u}_\theta and {\bf a} = (r'' - r) {\bf u}_r + 2 r' {\bf u}_\theta, so {\bf v} \times {\bf a} = (r^2 + 2 (r')^2 - r r'') {\bf u}_r \times {\bf u}_\theta, and the condition is r^2 + 2 (r')^2 - r r'' \ge 0 for all $\theta$. Note that we can't just "ignore" a discontinuity in r', which could correspond to a sharp corner that makes the curve non-convex.