Skip to content

Commit 9c8936f

Browse files
committed
clusterExport from fn env to close #1
1 parent 4d38883 commit 9c8936f

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

DESCRIPTION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: githist
22
Title: Code analyses traced along the 'git' history of a package
3-
Version: 0.1.0.034
3+
Version: 0.1.0.035
44
Authors@R:
55
person("Mark", "Padgham", , "mark.padgham@email.com", role = c("aut", "cre"),
66
comment = c(ORCID = "0000-0003-2172-5265"))

R/githist-fn.R

+5-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,11 @@ extract_pkgstats_data_single <- function (log, path) {
8383
extract_pkgstats_data_multi <- function (log, path, num_cores) {
8484

8585
cl <- parallel::makeCluster (num_cores)
86-
parallel::clusterExport (cl, c ("log", "path", "run_one_pkgstats"))
86+
parallel::clusterExport (
87+
cl,
88+
c ("log", "path", "run_one_pkgstats"),
89+
envir = environment ()
90+
)
8791
res <- pbapply::pblapply (seq_len (nrow (log)), function (i) {
8892
path_cp <- fs::dir_copy (path, fs::path_temp ())
8993
g <- gert::git_reset_hard (ref = log$commit [i], repo = path_cp)

codemeta.json

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

0 commit comments

Comments
 (0)