With thanks to both @k00b and @039802da15
For anyone following this, the correct cli command would be... echo -n R | shasum -a 256 -t