update md for chapter R