Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix broken rtools regexp.

Closes #262
  • Loading branch information...
commit 6d93b05f7bf8c5c4576b3837ab57fff846792e9a 1 parent 78501d0
@hadley authored
Showing with 3 additions and 1 deletion.
  1. +2 −0  NEWS
  2. +1 −1  R/rtools.r
View
2  NEWS
@@ -1,3 +1,5 @@
+* Fix regular expression problem that caused RTools 3.0.* to fail to be found on Windows.
+
devtools 1.1
-----------------
View
2  R/rtools.r
@@ -179,7 +179,7 @@ installed_version <- function(path, debug) {
# Extract the version
contents <- gsub("^\\s+|\\s+$", "", contents)
- version_re <- "Rtools version (\\d\\.\\d\\d)[0-9.]+$"
+ version_re <- "Rtools version (\\d\\.\\d+)\\.[0-9.]+$"
if (!grepl(version_re, contents)) return(NULL)
Please sign in to comment.
Something went wrong with that request. Please try again.