2121# ' https://travis-ci.com. Change to `"org"` for https://travis-ci.org.
2222# ' @export
2323# ' @rdname ci
24- use_travis <- function (browse = interactive (), ext = c(" com" , " org" )) {
24+ use_travis <- function (browse = rlang :: is_interactive (), ext = c(" com" , " org" )) {
2525 check_uses_github()
2626 ext <- arg_match(ext )
2727 new <- use_template(
@@ -51,7 +51,7 @@ use_travis_badge <- function(ext = c("com", "org")) {
5151 use_badge(" Travis build status" , url , img )
5252}
5353
54- travis_activate <- function (browse = interactive (), ext = c(" com" , " org" )) {
54+ travis_activate <- function (browse = is_interactive (), ext = c(" com" , " org" )) {
5555 ext <- arg_match(ext )
5656 url <- glue(" https://travis-ci.{ext}/profile/{github_owner()}" )
5757
@@ -85,7 +85,7 @@ check_uses_travis <- function(base_path = proj_get()) {
8585# ' integration service for Windows.
8686# ' @export
8787# ' @rdname ci
88- use_appveyor <- function (browse = interactive ()) {
88+ use_appveyor <- function (browse = rlang :: is_interactive ()) {
8989 check_uses_github()
9090
9191 new <- use_template(" appveyor.yml" , ignore = TRUE )
@@ -99,7 +99,7 @@ use_appveyor <- function(browse = interactive()) {
9999 invisible (TRUE )
100100}
101101
102- appveyor_activate <- function (browse = interactive ()) {
102+ appveyor_activate <- function (browse = is_interactive ()) {
103103 url <- " https://ci.appveyor.com/projects/new"
104104 ui_todo(" Turn on AppVeyor for this repo at {url}" )
105105 if (browse ) {
@@ -179,7 +179,7 @@ check_uses_gitlab_ci <- function(base_path = proj_get()) {
179179# ' `rocker/r-ver:3.5.3`.
180180# ' @export
181181# ' @rdname ci
182- use_circleci <- function (browse = interactive (), image = " rocker/verse:latest" ) {
182+ use_circleci <- function (browse = rlang :: is_interactive (), image = " rocker/verse:latest" ) {
183183 check_uses_github()
184184 use_directory(" .circleci" , ignore = TRUE )
185185 new <- use_template(
@@ -210,7 +210,7 @@ use_circleci_badge <- function() {
210210 use_badge(" CircleCI build status" , url , img )
211211}
212212
213- circleci_activate <- function (browse = interactive ()) {
213+ circleci_activate <- function (browse = is_interactive ()) {
214214 url <- glue(" https://circleci.com/add-projects/gh/{github_owner()}" )
215215
216216 ui_todo(" Turn on CircleCI for your repo at {url}" )
0 commit comments