add needs(), a function to derive R package dependencies for the current R session