Robert was president of the Board of Engineers from 1895 to 1901. He received a tombstone promotion to brigadier general on April 30, 1901, and was appointed Chief of Engineers. He served until May 2, 1901, when he retired from the Army. Following his retirement, he chaired a board of engineers that designed the Galveston, Texas seawall following the Galveston hurricane of 1900.