Permalink
Browse files

Fix broken rtools regexp.

Closes #262
  • Loading branch information...
hadley committed Feb 22, 2013
1 parent 78501d0 commit 6d93b05f7bf8c5c4576b3837ab57fff846792e9a
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
@@ -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)

0 comments on commit 6d93b05

Please sign in to comment.