was Director of the Science Museum and the Library and Professor of Chemistry and Physics until 1874