diff --git a/DESCRIPTION b/DESCRIPTION index 56192d8..dd7d3d1 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,8 +1,8 @@ Package: leaderCluster Type: Package Title: Leader Clustering Algorithm -Version: 1.3 -Date: 2022-08-12 +Version: 1.5 +Date: 2023-03-24 Author: Taylor B. Arnold Maintainer: Taylor B. Arnold Description: The leader clustering algorithm provides @@ -15,8 +15,9 @@ Description: The leader clustering algorithm provides formula, which takes latitude/longitude pairs as inputs and clusters based on great circle distances. License: LGPL-2 -RoxygenNote: 7.2.1 +LazyLoad: yes NeedsCompilation: yes -Packaged: 2022-08-12 16:22:32 UTC; taylor +RoxygenNote: 7.2.3 +Packaged: 2023-03-24 16:26:10 UTC; admin Repository: CRAN -Date/Publication: 2022-08-17 09:30:06 UTC +Date/Publication: 2023-03-24 18:30:02 UTC diff --git a/MD5 b/MD5 index a7c1690..d1143f0 100644 --- a/MD5 +++ b/MD5 @@ -1,8 +1,8 @@ -b3b4f49519ddc7694f64c23550656699 *DESCRIPTION -7e72b07e54941bea83a2a4e3c1b9c7d5 *NAMESPACE -142cf97fce93b5455e47f318278776b1 *R/leaderCluster.R +fe41f8a47ed1bb0bba28a7974c624fc1 *DESCRIPTION +da302794bc23510bacf4066c69024d15 *NAMESPACE +316432aecc59020f93fc03538e95a2d5 *R/leaderCluster.R 69879d71b9d3863d19a04625c00d10aa *README.md 6815b530c5506f8a94affdbcd3067c41 *man/leaderCluster.Rd 2a1bce164485a073d93fd8954ef55dee *src/ctest.h -ba94691c579c49586fd59f9900caa608 *src/init.c +458feb314a3627708876e1d44ed89a08 *src/init.c 40457fbfcdda3abf2688292e9c5318e4 *src/leaderCluster.c diff --git a/NAMESPACE b/NAMESPACE index b63bcba..1df0edc 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -1,2 +1,2 @@ export("leaderCluster") -useDynLib(leaderCluster, .registration = TRUE, .fixes = "C_") +useDynLib(leaderCluster, .registration = TRUE, .fixes = "C_") \ No newline at end of file diff --git a/R/leaderCluster.R b/R/leaderCluster.R index bbbfd8e..ccd0f7a 100644 --- a/R/leaderCluster.R +++ b/R/leaderCluster.R @@ -113,7 +113,7 @@ leaderCluster <- function(points, radius, weights = rep(1, nrow(points)), max_it while (iter <= max_iter ) { - out = .C("leader_cluster", + out = .C(C_leader_cluster, delta = as.double(radius), points = as.double(points), weights = as.double(weights), diff --git a/src/init.c b/src/init.c index 9d3fd56..76df9a4 100644 --- a/src/init.c +++ b/src/init.c @@ -14,7 +14,7 @@ static const R_CMethodDef R_CDef[] = { {NULL, NULL, 0, NULL} }; -void R_init_dgof(DllInfo *dll) +void R_init_leaderCluster(DllInfo *dll) { R_registerRoutines(dll, R_CDef, NULL, NULL, NULL); R_useDynamicSymbols(dll, FALSE);