-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Regression in ordiplot(<rda-class>, scaling=1) #685
Comments
The error really seems crop out on line 81 of dots <- match.call(expand.dots = FALSE)$... which was added in ff75668 to handle dot arguments. However, this seems not work:
Seems to need re-thinking. |
Still does not handle arguments optimize and arrows when passed from ordiplot to plot.cca.
Shouldn't |
I don't think so: |
Ignore the above I missed the second part of the conditional
|
…ze to work from very limited testing !
I have pushed an alternative fix to issue-685 branch as discussed in cafdc03 - I need to test this though - was there a specific test you were running to check this @jarioksa? I'm not 100% clear on how the new code all works for the piping behaviour. I think |
I used only |
I checked the use of $ grep -n NextMethod R/*R
R/add1.cca.R:12: out <- suppressMessages(NextMethod("add1", object, test = "none", ...))
R/anova.prc.R:22: NextMethod("anova", object, ...)
R/biplot.rda.R:12: NextMethod("biplot", x, ...)
R/drop1.cca.R:11: out <- suppressMessages(NextMethod("drop1", object, test = "none", ...))
R/goodness.metaMDS.R:5: return(NextMethod("goodness", object, ...))
R/plot.cca.R:147: NextMethod("plot", x, ...)
R/print.cca.R:118: NextMethod("print", x, ...)
R/print.mso.R:4: NextMethod("print", x, digits = digits, ...) |
Some checking suggests that Rereading |
The logics and arguments of ordiplot(rda(dune), scaling=2, type="t", bg="white", optimize=TRUE)
ordiplot(rda(dune), scaling=2, type="t", bg="white", spe.par=list(optimize=TRUE))
Inspect the following command: ordiplot(rda(dune), scaling=2, type="t", bg="white", spe.par=list(optimize=T), arrows = TRUE) This will be passed to ### with NextMethod("plot", x) or empty NextMethod() match.call()
plot.cca(x = ord, choices = choices, scaling = 2, type = type,
xlim = xlim, ylim = ylim, spe.par = ..3, ... = pairlist(bg = "white"))
### with NextMethod("plot", x, ...) sys.call()
### match.call() fails with multiple definitions, args after ... are dot args
plot.cca(ord, choices = choices, type = type, xlim = xlim, ylim = ylim,
..., scaling = 2, bg = "white", spe.par = list(optimize = TRUE))
The minimum nuisance strategy is to add I focussed on |
The problem was found in reverse depedency tests for BiodiversityR examples:
A short example is:
The bug does not occur in the release branch cran-2.6-6. It does not influence
cca
but it influencesdbrda
andcapscale
.The problem was bisected to commit ff75668 but fix may be needed in a file that was not touched in that commit.
The text was updated successfully, but these errors were encountered: