Skip to content

Commit

Permalink
Add .url to documentation of data + gh homepage.
Browse files Browse the repository at this point in the history
  • Loading branch information
olivroy committed Dec 8, 2023
1 parent 69e7b82 commit f4071f1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion R/data.R
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ use_data <- function(...,
check_files_absent(proj_path(paths), overwrite = overwrite)

ui_done("Saving {ui_value(unlist(objs))} to {ui_value(paths)}")
if (!internal) ui_todo("Document your data (see {ui_value('https://r-pkgs.org/data.html')})")
if (!internal) ui_todo("Document your data (see {.url https://r-pkgs.org/data.html})")

envir <- parent.frame()
mapply(
Expand Down
2 changes: 1 addition & 1 deletion R/github.R
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ use_github <- function(organisation = NULL,
)
withr::defer(view_url(create$html_url))

ui_done("Setting remote {ui_value('origin')} to {ui_value(origin_url)}")
ui_done("Setting remote {ui_value('origin')} to {.url {origin_url}}")
use_git_remote("origin", origin_url)

if (is_package()) {
Expand Down
2 changes: 1 addition & 1 deletion R/pkgdown.R
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ use_pkgdown_url <- function(url, tr = NULL) {
gh <- gh_tr(tr)
homepage <- gh("GET /repos/{owner}/{repo}")[["homepage"]]
if (is.null(homepage) || homepage != url) {
ui_done("Setting {ui_value(url)} as homepage of GitHub repo \\
ui_done("Setting {.url {url}} as homepage of GitHub repo \\
{ui_value(tr$repo_spec)}")
gh("PATCH /repos/{owner}/{repo}", homepage = url)
}
Expand Down

0 comments on commit f4071f1

Please sign in to comment.