Skip to content

Commit 1909b25

Browse files
authored
Make code runnable (#1975)
1 parent 3b6847f commit 1909b25

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

R/github_token.R

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ create_github_token <- function(scopes = c("repo", "user", "gist", "workflow"),
6868

6969
hint <- code_hint_with_host("gitcreds::gitcreds_set", host)
7070
message <- c(
71-
"_" = "Call {.code {hint}} to register this token in the local Git
71+
"_" = "Call {.run {hint}} to register this token in the local Git
7272
credential store."
7373
)
7474
if (is_linux()) {
@@ -141,14 +141,14 @@ pat_sitrep <- function(host = "https://github.com",
141141

142142
if (!have_pat) {
143143
kv_line("Personal access token for {.val {host}}", NULL)
144-
hint <- code_hint_with_host("create_github_token", host, "host")
144+
hint <- code_hint_with_host("usethis::create_github_token", host, "host")
145145
ui_bullets(c(
146-
"_" = "To create a personal access token, call {.code {hint}}."
146+
"_" = "To create a personal access token, call {.run {hint}}."
147147
))
148148
hint <- code_hint_with_host("gitcreds::gitcreds_set", host)
149149
url <- "https://usethis.r-lib.org/articles/articles/git-credentials.html"
150150
ui_bullets(c(
151-
"_" = "To store a token for current and future use, call {.code {hint}}.",
151+
"_" = "To store a token for current and future use, call {.run {hint}}.",
152152
"i" = "Read more in the {.href [Managing Git(Hub) Credentials]({url})} article."
153153
))
154154
return(invisible(FALSE))

0 commit comments

Comments
 (0)