R Under development (unstable) (2024-12-15 r87442 ucrt) -- "Unsuffered Consequences" Copyright (C) 2024 The R Foundation for Statistical Computing Platform: x86_64-w64-mingw32/x64 R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > require(pacu) Loading required package: pacu > require(sf) Loading required package: sf Linking to GEOS 3.12.2, GDAL 3.9.3, PROJ 9.4.1; sf_use_s2() is TRUE > > run.test <- get(".run.local.tests", envir = pacu.options) > > if(run.test){ + + pts <- data.frame(x = c(-99.02, -93.02, -87.02), y = rep(42.09, 3)) + pts <- sf::st_as_sf(pts, coords = c('x', 'y'), crs = 'epsg:4326') + + crs.strs <- c() + + for (i in 1:nrow(pts)){ + a <- pa_2utm(pts[i, ]) + a <- st_crs(a)$input + crs.strs <- c(crs.strs, a) + } + + + } > > proc.time() user system elapsed 1.64 0.28 1.90