Skip to content

Commit

Permalink
Merge branch 'adonis2-transition'
Browse files Browse the repository at this point in the history
  • Loading branch information
jarioksa committed Apr 28, 2024
2 parents 35edb36 + c4fb6c8 commit abfbd75
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/adonis.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
by <- match.arg(by, c("terms", "margin", "onedf"))
## evaluate lhs
YVAR <- formula[[2]]
lhs <- eval(YVAR, environment(formula), globalenv())
lhs <- eval(YVAR, parent.frame(), environment(formula))
environment(formula) <- environment()
## Take care that input lhs are dissimilarities
if ((is.matrix(lhs) || is.data.frame(lhs)) &&
Expand Down

0 comments on commit abfbd75

Please sign in to comment.