Only source a file when it has changes in R You may save a bit of time by only source‘ing your files in R when they have changes with R.utils::sourceTo(file, modifiedOnly=TRUE). Via r-help via R.utils. You might also like some of these