[Splm-commits] r246 - pkg

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Tue Jul 26 16:53:07 CEST 2022


Author: the_sculler
Date: 2022-07-26 16:53:07 +0200 (Tue, 26 Jul 2022)
New Revision: 246

Modified:
   pkg/NAMESPACE
Log:
Rationalize depencence on spdep further (only importFrom)


Modified: pkg/NAMESPACE
===================================================================
--- pkg/NAMESPACE	2022-07-26 14:15:06 UTC (rev 245)
+++ pkg/NAMESPACE	2022-07-26 14:53:07 UTC (rev 246)
@@ -23,15 +23,18 @@
 #  import(spatialreg)
 #}
 
-## check if we can simplify imports (to avoid dependencies like, e.g., gdata)
+## check if we can rationalize imports from spdep and spatialreg (also to avoid
+## problematic dependencies like, e.g., gdata)
 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))
-  importFrom(spatialreg, impacts,
+  #import(spdep, except=c(set.ClusterOption, set.VerboseOption, set.mcOption, 
+   # get.VerboseOption, get.coresOption, set.coresOption, set.ZeroPolicyOption, 
+    #get.mcOption, get.ClusterOption, get.ZeroPolicyOption))
+    importFrom(spdep, mat2listw, listw2mat, lag.listw, nblag,
+               is.symmetric.nb, is.symmetric.glist, card)
+    importFrom(spatialreg, impacts,
              do_ldet, eigen_setup, trW,
              eigen_pre_setup, Matrix_setup, Matrix_J_setup, spam_setup,
              spam_update_setup, cheb_setup, mcdet_setup, LU_setup,



More information about the Splm-commits mailing list