Update prep_for_R_tm.sh