-
Notifications
You must be signed in to change notification settings - Fork 97
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
object 'sigma' not found whilst loading namespace 'vegan' #274
Comments
It very badly looks that your R is too old, and we failed to test vegan with older R: the generic function We should have checked vegan with older version of R and updated the version dependendency if needed. We'll fix that in |
reported as github issue #274. We failed to check vegan with older version of R and gave false promise of 3.1.0 compatibility. I could not check 3.3.0 compatibility though: R 3.3.0 had a broken configure script which failed to understand that zlib version 1.2.11 (installed) > 1.2.5 (required).
It is possible to get around this problem with the following: diff --git a/R/influence.cca.R b/R/influence.cca.R
index abdaa9e4..9940c79c 100644
--- a/R/influence.cca.R
+++ b/R/influence.cca.R
@@ -37,6 +37,11 @@
## statistic this would be residual of WA/LC regression with little or
## no meaning.
+## sigma generic was introduced in R 3.3.0
+
+if (getRversion() < "3.3.0")
+ sigma <- function(object, ...) UseMethod("sigma")
+
`sigma.cca` <-
function(object, type = c("response", "canoco"), ...)
{ This will allow installing vegan on R 3.2.x. However, This is an alternative fix for 2.5-2 instead of increasing dependency on R version. |
My bad sorry, |
It happens that people are stuck with old versions, due to using infrastructure managed by institutions etc. Would it be feasible to stick to the alternative fix of @jarioksa ? In any case, thanks for the manual fix :) |
The problem seems to be in documentation: I can have conditional definition of |
@oguzhanogreden : I agree, and I know the situation. I cannot provide full compatibility but with R 3.3.0. series, but I can provide partial compatibility and passing tests to R 3.2.0. Currently we have yearly major releases meaning that 3.3.0 is from April 2016 and 3.2.0 is from April 2015, while vegan 2.4-6 was dependent on R 3.1.0 from 2014. The new features that do not work with R 3.1.0 are:
For I'll see how much can I do. |
I must say that this looks like some amount of work and I don't find it reasonable to expect you to put enerhy into these, especially since the solution is provided here. The early comment was just to let you know of one perspective, in case it would be easy to fix. I faced this due to vegan being imported in another package, which I'm using for a simulation study. For managing the code of the study I used |
Commit 954461e fixes most issues in this thread:
|
vegan 2.5-5 depends on R (>= 3.4.0) and we can remove the hacks for sigma.cca in R (<= 3.3.0). Final fix for issue #274 workarounds.
vegan_2.5-5 will depend on R 3.4.0 which makes these 2.5-2 |
Hi,
Tried to install the vegan package version 2.5-1 but got an error message (full message below) :
" object 'sigma' not found whilst loading namespace 'vegan' "
I tried multiple time and after start a new workspace but didn't work. I succeed to install the older version of the package (2.4-6)
Maybe I am doing something wrong, if yes, sorry in advance :)
The text was updated successfully, but these errors were encountered: