known as sir robert melville of murdocairnie or murdochcairnie, robert was the second son of sir john melville of raith in fife and helen napier of merchiston. his younger brother sir james melville of halhill wrote a famous political memoir.