 During his time in Edinburgh his elder brother Thomas died, leaving him heir to the family estate.In 1591 Margaret and her family were kidnapped by Hew Kennedy of Girvanmains and imprisoned for a while in Dalquharran Castle.Robert studied theology at the University of Edinburgh, where he was taught by the Presbyterian Robert Rollock and graduated in 1594.