Skip to content

Commit 82e10f1

Browse files
committed
Do not convert "package" column to a factor
1 parent 636d767 commit 82e10f1

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

NAMESPACE

+1
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,7 @@ importFrom(kwb.utils,getAttribute)
5555
importFrom(kwb.utils,get_homedir)
5656
importFrom(kwb.utils,hsRestoreAttributes)
5757
importFrom(kwb.utils,lastElement)
58+
importFrom(kwb.utils,moveColumnsToFront)
5859
importFrom(kwb.utils,noFactorDataFrame)
5960
importFrom(kwb.utils,noSuchElements)
6061
importFrom(kwb.utils,orderBy)

R/getPackageLicences.R

+3-2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
#'
55
#' @param packages names of (installed) packages
66
#' @return data frame
7+
#' @importFrom kwb.utils moveColumnsToFront rbindAll
78
#' @export
89
getPackageLicences <- function(packages)
910
{
@@ -14,8 +15,8 @@ getPackageLicences <- function(packages)
1415
as.data.frame(description[, columns, drop = FALSE])
1516
}) %>%
1617
stats::setNames(packages) %>%
17-
rbindAll(nameColumn = "package") %>%
18-
moveColumnsToFront("package")
18+
kwb.utils::rbindAll(nameColumn = "package", namesAsFactor = FALSE) %>%
19+
kwb.utils::moveColumnsToFront("package")
1920
}
2021

2122
# readDescription --------------------------------------------------------------

0 commit comments

Comments
 (0)