Skip to content

Commit f71c697

Browse files
committed
chore: cleanup tools imports
1 parent 5730622 commit f71c697

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

NAMESPACE

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ export(summary_table)
1515
importFrom(grDevices,grSoftVersion)
1616
importFrom(htmltools,div)
1717
importFrom(methods,is)
18-
importFrom(tools,analyze_license)
1918
importFrom(tools,check_packages_in_dir_details)
2019
importFrom(utils,capture.output)
2120
importFrom(utils,getFromNamespace)

R/render_utils.R

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,14 @@
55
#' @details The function analyzes if the license is standard. If it is standard, then it will see if there is available
66
#' information for the footer. The footer information is only the multiple version number for the moment.
77
#' @keywords internal
8-
#' @importFrom tools analyze_license
98
#' @importFrom utils getFromNamespace
109
extract_license <- function(assessment) {
1110
license_output <- list(main = as.character(assessment$license))
1211
# We use the internal version so that we can use old R versions analyze_license
1312
if (getRversion() < "4.4.0") {
1413
analyze_license <- utils::getFromNamespace("tools", "analyze_license") # nolint
1514
} else {
16-
analyze_license <- tools::analyze_license
15+
analyze_license <- getExportedValue("tools", "analyze_license")
1716
}
1817
license_analysis <- analyze_license(license_output$main)
1918

0 commit comments

Comments
 (0)