Playfair, Robert Lambert, Sir, author and administrator