update R scripts and avoid problems with or timeout