Listing dependencies on R script and loading them on script