Skip to content

Commit f6c5c6a

Browse files
committed
use 'update_pj_path' fn in org_data_embeddings for #80
1 parent 94a58c6 commit f6c5c6a

File tree

3 files changed

+5
-12
lines changed

3 files changed

+5
-12
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: orgmetrics
22
Title: Metrics for Your GitHub Organization
3-
Version: 0.1.2.124
3+
Version: 0.1.2.125
44
Authors@R:
55
person("Mark", "Padgham", , "[email protected]", role = c("aut", "cre"),
66
comment = c(ORCID = "0000-0003-2172-5265"))

R/data-embeddings.R

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,10 @@ rm_org_data_embeddings <- function (pkgs_json) {
77
is_r_pkg <- NULL
88

99
pkgs_dat <- jsonlite::read_json (pkgs_json, simplify = TRUE) |>
10-
dplyr::filter (is_r_pkg)
11-
pkgs_dat$path <- fs::path (fs::path_dir (pkgs_json), pkgs_dat$path)
10+
dplyr::filter (is_r_pkg) |>
11+
update_pj_path (fs::path_dir (pkgs_json))
1212

13-
dir <- fs::path_common (pkgs_dat$path)
14-
pkgs_root <- fs::path (dir, pkgs_dat$root)
15-
pkg_names <- get_all_pkg_names (pkgs_dat)
16-
pkg_paths <- fs::path (dir, pkg_names$pkg_name)
17-
18-
embeddings <- pkgmatch::pkgmatch_embeddings_from_pkgs (pkg_paths)
19-
20-
return (embeddings)
13+
pkgmatch::pkgmatch_embeddings_from_pkgs (pkgs_dat$path)
2114
}
2215

2316
rm_org_emb_distances <- function (org_paths, embeddings_data = NULL, what = "code") {

codemeta.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
"codeRepository": "https://github.com/ropensci-review-tools/orgmetrics",
99
"issueTracker": "https://github.com/ropensci-review-tools/orgmetrics/issues",
1010
"license": "https://spdx.org/licenses/GPL-3.0",
11-
"version": "0.1.2.124",
11+
"version": "0.1.2.125",
1212
"programmingLanguage": {
1313
"@type": "ComputerLanguage",
1414
"name": "R",

0 commit comments

Comments
 (0)