Skip to content

Commit f020bd8

Browse files
committed
fix user_general fn when data missing
1 parent c3455d7 commit f020bd8

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

DESCRIPTION

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: repometrics
22
Title: Metrics for Your Code Repository
3-
Version: 0.1.3.006
3+
Version: 0.1.3.007
44
Authors@R:
55
person("Mark", "Padgham", , "mark.padgham@email.com", role = c("aut", "cre"),
66
comment = c(ORCID = "0000-0003-2172-5265"))

R/data-gh-user.R

+3-3
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ gh_user_general_internal <- function (login = "",
5454
login = user$login,
5555
name = user$name,
5656
email = user$email,
57-
location = user$location,
58-
company = user$company,
59-
bio = user$bio,
57+
location = null2na_char (user$location),
58+
company = null2na_char (user$company),
59+
bio = null2na_char (user$bio),
6060
avatarUrl = user$avatarUrl,
6161
num_repositories = user$repositories$totalCount,
6262
repos_contributed_to = user$repositoriesContributedTo$totalCount,

codemeta.json

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

0 commit comments

Comments
 (0)