Read the NAMESPACE file as a list split by whether it is tagged as an export, import, or an importFrom. The export and imports are returned as a list of package names while the importFrom is a dataframe of the package name and the function from the package.
read_namespace(path = getwd())
Other R Package functions:
read_description()
read_namespace()#> Error in read_namespace(): could not find function "read_namespace"