Skip to content

Commit

Permalink
do not use tail in this method
Browse files Browse the repository at this point in the history
  • Loading branch information
robertzk committed Feb 21, 2015
1 parent 493d2d9 commit a9a7606
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/define.r
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ define <- (function() {
arguments <- arguments[names(arguments) != 'packages']
}

fn <- tail(arguments, 1)[[1]]
fn <- arguments[[length(arguments)]]
valid_function <- is.function(fn)
if (valid_function) {
dependencies <- head(arguments, -1)
Expand Down

0 comments on commit a9a7606

Please sign in to comment.