Running examples in 'rfishbase-Ex.R' failed
The error most likely occurred in:

> ### Name: available_releases
> ### Title: List available releases
> ### Aliases: available_releases
> 
> ### ** Examples
> 
> available_releases()

Error: <github_error in gh_process_response(raw): 
GitHub API error (401): 
Message: Bad credentials
Read more at https://docs.github.com/rest>
$calls
$calls[[1]]
available_releases()

$calls[[2]]
gh::gh("/repos/:owner/:repo/releases", owner = "ropensci", repo = "rfishbase", 
    .token = token) %>% purrr::map_chr("tag_name") %>% stringr::str_extract("\\d\\d\\.\\d\\d") %>% 
    as.numeric() %>% stats::na.omit() %>% unique() %>% sort(decreasing = TRUE) %>% 
    as.character()

$calls[[3]]
sort(., decreasing = TRUE)

$calls[[4]]
unique(.)

$calls[[5]]
stats::na.omit(.)

$calls[[6]]
stringr::str_extract(., "\\d\\d\\.\\d\\d")

$calls[[7]]
stri_extract_first_regex(string, pattern, opts_regex = opts(pattern))

$calls[[8]]
purrr::map_chr(., "tag_name")

$calls[[9]]
gh::gh("/repos/:owner/:repo/releases", owner = "ropensci", repo = "rfishbase", 
    .token = token)

$calls[[10]]
gh_process_response(raw)

$calls[[11]]
gh_error(response)

$calls[[12]]
throw(cond)


$parents
 [1]  0  1  3  4  5  6  6  8  1  9 10 11

$envs
$envs[[1]]
[1] "0x0000000016779578"

$envs[[2]]
[1] "0x000000001677aaf8"

$envs[[3]]
[1] "0x000000001677da48"

$envs[[4]]
[1] "0x000000001677d7e0"

$envs[[5]]
[1] "0x000000001677d5e8"

$envs[[6]]
[1] "0x000000001677be80"

$envs[[7]]
[1] "0x0000000016781818"

$envs[[8]]
[1] "0x0000000016780c80"

$envs[[9]]
[1] "0x00000000167d8d38"

$envs[[10]]
[1] "0x0000000016a5d748"

$envs[[11]]
[1] "0x0000000016a66238"

$envs[[12]]
[1] "0x0000000016b46540"


$topenvs
$topenvs[[1]]
[1] "namespace:rfishbase"

$topenvs[[2]]
[1] "namespace:magrittr"

$topenvs[[3]]
[1] "namespace:base"

$topenvs[[4]]
[1] "namespace:base"

$topenvs[[5]]
[1] "namespace:stats"

$topenvs[[6]]
[1] "namespace:stringr"

$topenvs[[7]]
[1] "namespace:stringi"

$topenvs[[8]]
[1] "namespace:purrr"

$topenvs[[9]]
[1] "namespace:gh"

$topenvs[[10]]
[1] "namespace:gh"

$topenvs[[11]]
[1] "namespace:gh"

$topenvs[[12]]
[1] "0x0000000016ad0f40"


$indices
 [1]  1  2  3  4  5  6  7  8  9 10 11 12

$nframes
[1] 12

$messages
$messages[[1]]
[1] "\nGitHub API error (401): \nMessage: Bad credentials\nRead more at https://docs.github.com/rest"


$ignore
NULL

$classes
[1] "github_error"   "http_error_401" "error"          "condition"     

$pids
 [1] 182080 182080 182080 182080 182080 182080 182080 182080 182080 182080
[11] 182080 182080

attr(,"class")
[1] "rlib_trace"
Execution halted