get_libraries function

Extracts the Packages Used in An Rmd File.