| set_parallel | R Documentation |
Set up parallel processing for API calls using mirai daemons.
When enabled, GitStats fetches data from multiple repositories
concurrently. Call set_parallel(FALSE) or set_parallel(0) to revert
to sequential execution.
set_parallel(gitstats, workers = 10L)
gitstats |
A GitStats object. |
workers |
Number of parallel workers. Set to |
A GitStats object.
## Not run:
my_gitstats <- create_gitstats() |>
set_github_host(
token = Sys.getenv("GITHUB_PAT"),
orgs = c("r-world-devs", "openpharma")
) |>
set_parallel(4)
get_commits(my_gitstats, since = "2024-01-01")
my_gitstats |> set_parallel(FALSE) # revert to sequential
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.