Update notes.md

add r code