Murray was promoted to rear-admiral on 23 April 1804, and thereafter rose through the ranks, reaching vice-admiral on 25 October 1809. He was appointed to be Commander in Chief, North Yarmouth in summer 1811, and hoisted his flag aboard
HMS Solebay. He held the post until the end of the Napoleonic Wars, and was promoted to admiral on 12 August 1819, though he never again served actively. He remained interested in naval affairs in his retirement, and in 1821 played an important part in the establishment of a floating chapel at
Liverpool for the use of sailors, persuading the Admiralty to loan them for the purpose. He had at least two sons during his life, who followed their father into the navy and by the time of his death had reached the ranks of commander and lieutenant. He also had a son, Robert Sherbourne Murray (1808–1852), a Major in the Army, who died in Dublin. Admiral Robert Murray died on 30 June 1834 at his residence, South Hill, near Liverpool, at the age of 71 and the rank of admiral of the white. ==Notes==