Skip to content

Commit

Permalink
gsub(..., useBytes = TRUE) in rsutdio detect as well
Browse files Browse the repository at this point in the history
  • Loading branch information
gaborcsardi committed Feb 10, 2022
1 parent ef486af commit e6df6ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/rstudio-detect.R
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ rstudio <- local({
}

is_build_pane_command <- function(args) {
cmd <- gsub("[\"']", "", args[[length(args)]])
cmd <- gsub("[\"']", "", args[[length(args)]], useBytes = TRUE)
rcmd <- sub("[(].*$", "", cmd)
rcmd %in% c("devtools::build", "devtools::test", "devtools::check")
}
Expand Down

0 comments on commit e6df6ca

Please sign in to comment.