Automatically load R package dependencies