From 4330ba53b62c74e14cfd034cadc1e745d4934fcc Mon Sep 17 00:00:00 2001 From: mpadge Date: Wed, 15 May 2024 14:00:34 +0200 Subject: [PATCH] namespace 'stats::ave' for #35 --- DESCRIPTION | 2 +- R/add-contributors.R | 2 +- codemeta.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index d22688f..5d6425f 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: allcontributors Title: Acknowledge all Contributors to a Project -Version: 0.1.1.013 +Version: 0.1.1.014 Authors@R: person("Mark", "Padgham", , "mark.padgham@email.com", role = c("aut", "cre")) Description: Acknowledge all contributors to a project via a single diff --git a/R/add-contributors.R b/R/add-contributors.R index 2d73eff..7ef8ec9 100644 --- a/R/add-contributors.R +++ b/R/add-contributors.R @@ -101,7 +101,7 @@ add_contributors <- function (repo = ".", })) combined_df <- do.call(rbind, all_repos[, 'ctbs']) - combined_df$contributions <- ave(combined_df$contributions, combined_df$login, FUN = sum) + combined_df$contributions <- stats::ave(combined_df$contributions, combined_df$login, FUN = sum) # Remove duplicate rows result <- combined_df[!duplicated(combined_df[c("logins")]), ] diff --git a/codemeta.json b/codemeta.json index 76a47b8..2636ff8 100644 --- a/codemeta.json +++ b/codemeta.json @@ -7,7 +7,7 @@ "codeRepository": "https://github.com/ropenscilabs/allcontributors", "issueTracker": "https://github.com/ropenscilabs/allcontributors/issues", "license": "https://spdx.org/licenses/GPL-3.0", - "version": "0.1.1.013", + "version": "0.1.1.014", "programmingLanguage": { "@type": "ComputerLanguage", "name": "R",