In 1794 Nicol was impressed into the Royal Navy, and subsequently fought at the battles of Cape St Vincent and the Nile on .