Skip to content

Commit f7839c0

Browse files
committed
Only call menu in interactive mode
Closes #86
1 parent ba43f10 commit f7839c0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/wordlist.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ update_wordlist <- function(pkg = ".", vignettes = TRUE, confirm = TRUE){
3636
}
3737
if(isTRUE(confirm) && length(words_added)){
3838
cat("Are you sure you want to update the wordlist?")
39-
if (utils::menu(c("Yes", "No")) != 1){
39+
if (interactive() && utils::menu(c("Yes", "No")) != 1){
4040
return(invisible())
4141
}
4242
}

0 commit comments

Comments
 (0)