Skip to content

Commit

Permalink
Compare version needs to work for julia development version number.
Browse files Browse the repository at this point in the history
  • Loading branch information
Non-Contradiction committed Oct 2, 2017
1 parent ef85c8a commit 6c19421
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion R/aaa.R
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,8 @@ julia_line <- function(command, ...){
system2(file.path(.julia$bin_dir, "julia"), command, ...)
}

newer <- function(x, y) utils::compareVersion(x, y) >= 0
newer <- function(x, y){
x <- substring(x, 1, 5)
y <- substring(y, 1, 5)
utils::compareVersion(x, y) >= 0
}

0 comments on commit 6c19421

Please sign in to comment.