@@ -59,7 +59,8 @@ gh_user_general_internal <- function (login = "",
59
59
bio = null2na_char (user $ bio ),
60
60
avatarUrl = null2na_char (user $ avatarUrl ),
61
61
num_repositories = null2na_int (user $ repositories $ totalCount ),
62
- repos_contributed_to = null2na_int (user $ repositoriesContributedTo $ totalCount ),
62
+ repos_contributed_to =
63
+ null2na_int (user $ repositoriesContributedTo $ totalCount ),
63
64
num_starred_repos = null2na_int (user $ starredRepositories $ totalCount )
64
65
)
65
66
@@ -238,11 +239,19 @@ gh_user_commit_cmt_internal <- function (login,
238
239
)
239
240
repourl <- c (
240
241
repourl ,
241
- vapply (nodes , function (i ) i $ repository $ nameWithOwner , character (1L ))
242
+ vapply (
243
+ nodes ,
244
+ function (i ) i $ repository $ nameWithOwner ,
245
+ character (1L )
246
+ )
242
247
)
243
248
repo_stargazers <- c (
244
249
repo_stargazers ,
245
- vapply (nodes , function (i ) i $ repository $ stargazerCount , integer (1L ))
250
+ vapply (
251
+ nodes ,
252
+ function (i ) i $ repository $ stargazerCount ,
253
+ integer (1L )
254
+ )
246
255
)
247
256
248
257
has_next_page <- dat $ data $ user $ commitComments $ pageInfo $ hasNextPage
@@ -359,12 +368,20 @@ gh_user_commits_internal <- function (login,
359
368
)
360
369
361
370
dates_i <- lapply (commits , function (i ) {
362
- vapply (i $ contributions $ nodes , function (j ) j $ occurredAt , character (1L ))
371
+ vapply (
372
+ i $ contributions $ nodes ,
373
+ function (j ) j $ occurredAt ,
374
+ character (1L )
375
+ )
363
376
})
364
377
n_i <- vapply (dates_i , length , integer (1L ))
365
378
dates <- c (dates , unlist (dates_i ))
366
379
commit_count_i <- lapply (commits , function (i ) {
367
- vapply (i $ contributions $ nodes , function (j ) j $ commitCount , integer (1L ))
380
+ vapply (
381
+ i $ contributions $ nodes ,
382
+ function (j ) j $ commitCount ,
383
+ integer (1L )
384
+ )
368
385
})
369
386
num_commits <- c (num_commits , unlist (commit_count_i ))
370
387
@@ -478,7 +495,8 @@ gh_user_issues_internal <- function (login,
478
495
n_per_page <- n_per_page_in_tests (n_per_page )
479
496
480
497
created_at <- closed_at <- org_repo <- issue_num <- end_cursor <-
481
- num_issue_comments <- num_issue_participants <- num_repo_languages <- NULL
498
+ num_issue_comments <- num_issue_participants <-
499
+ num_repo_languages <- NULL
482
500
repo_languages <- list ()
483
501
total_issue_contribs <- 0L
484
502
has_next_page <- TRUE
@@ -638,7 +656,8 @@ gh_user_issue_cmts_internal <- function (login,
638
656
num_comments <- num_participants <- NULL
639
657
has_next_page <- TRUE
640
658
641
- start_timestamp <- format (Sys.time () - 60 * 60 * 24 * 365 * nyears , " %Y-%m-%dT%H:%M:%S" )
659
+ start_timestamp <-
660
+ format (Sys.time () - 60 * 60 * 24 * 365 * nyears , " %Y-%m-%dT%H:%M:%S" )
642
661
start_timestamp <- as.POSIXct (start_timestamp )
643
662
644
663
while (has_next_page ) {
0 commit comments