[Splm-commits] r230 - pkg

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Tue Nov 9 15:13:40 CET 2021


Author: rsbivand
Date: 2021-11-09 15:13:40 +0100 (Tue, 09 Nov 2021)
New Revision: 230

Modified:
   pkg/NAMESPACE
Log:
conditionally importing from spdep/spatialreg depending on spdep version - needed for forthcomming spdep 1.2

Modified: pkg/NAMESPACE
===================================================================
--- pkg/NAMESPACE	2021-06-14 08:28:00 UTC (rev 229)
+++ pkg/NAMESPACE	2021-11-09 14:13:40 UTC (rev 230)
@@ -11,8 +11,15 @@
 importFrom(plm, pmodel.response)
 importFrom(plm, pdim)
 importFrom(nlme, fdHess, lme)
-import(spdep, except=c(do_ldet, eigen_setup, trW, impacts.gmsar, impacts))
-importFrom(spatialreg, do_ldet, eigen_setup, trW, impacts)
+if (packageVersion("spdep") < 1.2) {
+  import(spdep, except=c(do_ldet, eigen_setup, trW, impacts.gmsar, impacts))
+  importFrom(spatialreg, do_ldet, eigen_setup, trW, impacts)
+} else {
+  import(spdep, except=c(set.ClusterOption, set.VerboseOption, set.mcOption, 
+    get.VerboseOption, get.coresOption, set.coresOption, set.ZeroPolicyOption, 
+    get.mcOption, get.ClusterOption, get.ZeroPolicyOption))
+  import(spatialreg)
+}
 importFrom(ibdreg, pchibar)
 import(Matrix)
 importFrom(spam, as.spam, diag.spam, solve.spam, t.spam, determinant.spam)



More information about the Splm-commits mailing list