update RMD file