From f020bd886cc1f7f6c97ecd11ca8b7d59b49b51cd Mon Sep 17 00:00:00 2001 From: mpadge Date: Tue, 10 Dec 2024 14:14:54 +0100 Subject: [PATCH] fix user_general fn when data missing --- DESCRIPTION | 2 +- R/data-gh-user.R | 6 +++--- codemeta.json | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index 2585c86..6d30740 100755 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: repometrics Title: Metrics for Your Code Repository -Version: 0.1.3.006 +Version: 0.1.3.007 Authors@R: person("Mark", "Padgham", , "mark.padgham@email.com", role = c("aut", "cre"), comment = c(ORCID = "0000-0003-2172-5265")) diff --git a/R/data-gh-user.R b/R/data-gh-user.R index a0b65d9..c0334a5 100644 --- a/R/data-gh-user.R +++ b/R/data-gh-user.R @@ -54,9 +54,9 @@ gh_user_general_internal <- function (login = "", login = user$login, name = user$name, email = user$email, - location = user$location, - company = user$company, - bio = user$bio, + location = null2na_char (user$location), + company = null2na_char (user$company), + bio = null2na_char (user$bio), avatarUrl = user$avatarUrl, num_repositories = user$repositories$totalCount, repos_contributed_to = user$repositoriesContributedTo$totalCount, diff --git a/codemeta.json b/codemeta.json index 2fa1468..913b771 100644 --- a/codemeta.json +++ b/codemeta.json @@ -8,7 +8,7 @@ "codeRepository": "https://github.com/ropensci-review-tools/repometrics", "issueTracker": "https://github.com/ropensci-review-tools/repometrics/issues", "license": "https://spdx.org/licenses/GPL-3.0", - "version": "0.1.3.006", + "version": "0.1.3.007", "programmingLanguage": { "@type": "ComputerLanguage", "name": "R",