We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65764fa commit 4e43b00Copy full SHA for 4e43b00
R/github.R
@@ -136,7 +136,7 @@ use_github <- function(organisation = NULL,
136
}
137
git2r::branch_set_upstream(git2r::head(r), "origin/master")
138
139
- done("View repo at ", create$html_url)
+ view_url(create$html_url)
140
141
invisible(NULL)
142
R/helpers.R
@@ -183,3 +183,13 @@ edit_file <- function(base_path, path) {
183
184
invisible()
185
186
+
187
+view_url <- function(url, open = interactive()) {
188
+ if (open) {
189
+ done("Opening url")
190
+ utils::browseURL(url)
191
+ } else {
192
+ todo("Open url ", url)
193
+ }
194
+ invisible()
195
+}
0 commit comments