Skip to content

Commit

Permalink
🐫 remove repetitive call to basename
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan Patrick Kyle committed Mar 5, 2019
1 parent 694a142 commit 1bbd09d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,7 @@ get_package_mapping <- function(script_name, url_package, dependencies) {

package_map <- t(package_map)

pos_match <- grepl(paste0(script_name, "$"), package_map[, "dep_path"]) &
grepl(url_package, package_map[,"dep_name"])

rpkg_name <- package_map[,"pkg_name"][pos_match]
Expand Down

0 comments on commit 1bbd09d

Please sign in to comment.