The Commodore is the eighth novel in Patrick O'Brian's revered Aubrey-Maturin series.
The title in your query—"Richard the Comptroller and the Wild Wind"—does not correspond to any O'Brian novel. It may be a conflation with:
The novel follows Jack Aubrey and Stephen Maturin on a political-naval mission to West Africa—suppressing the slave trade, navigating diplomacy, and confronting personal crises. It's widely considered a series highlight for its moral complexity and Maturin's intelligence work.