From 4c7712f6c4811f57350f5825da6369752d5d3c9b Mon Sep 17 00:00:00 2001 From: dcooley <=> Date: Thu, 12 Dec 2024 18:46:24 +1100 Subject: [PATCH] to cran --- src/h3rUtils.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/h3rUtils.c b/src/h3rUtils.c index 288e916..310dda0 100644 --- a/src/h3rUtils.c +++ b/src/h3rUtils.c @@ -119,8 +119,9 @@ SEXP cellBoundaryToList(CellBoundary *cb) { SET_REAL_ELT(lats, i, radsToDegs(cb->verts[i].lat)); SET_REAL_ELT(lons, i, radsToDegs(cb->verts[i].lng)); } + SEXP lst = latLngList(lats, lons, rowNames); UNPROTECT(3); - return latLngList(lats, lons, rowNames); + return lst; } SEXP intToSexpArray(int *arr, R_xlen_t n) {