theodore roosevelt , who was vice president and took office after mckinley 's assassination , had been assistant navy secretary before resigning in 1897 to organize the rough riders in the spanish - american war .