Skip to content

Commit

Permalink
Add getAuthors()
Browse files Browse the repository at this point in the history
  • Loading branch information
hsonne committed Apr 16, 2024
1 parent 8db98c3 commit 112c4d8
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
1 change: 1 addition & 0 deletions NAMESPACE
Expand Up @@ -15,6 +15,7 @@ export(drawDependencies)
export(drawLink)
export(equidistantAngles)
export(exampleLinksAndNodes)
export(getAuthors)
export(getCranPackageDatabase)
export(getPackageFilesToInstall)
export(getPackageLicences)
Expand Down
13 changes: 13 additions & 0 deletions R/getAuthors.R
@@ -0,0 +1,13 @@
# getAuthors -------------------------------------------------------------------

#' Get Information on Package Authors
#'
#' @param package name of (installed) package
#' @export
getAuthors <- function(package)
{
description <- readDescription(package)
columns <- colnames(description)
columns <- grep("author", columns, value = TRUE, ignore.case = TRUE)
description[, columns]
}
14 changes: 14 additions & 0 deletions man/getAuthors.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 112c4d8

Please sign in to comment.