Skip to content

Commit 4d97b07

Browse files
committed
fixes #2537
1 parent cdc3b2e commit 4d97b07

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

R/geom-transformers.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ st_buffer.sfc = function(x, dist, nQuadSegs = 30,
170170
singleSide = rep(as.logical(singleSide), length.out = length(x))
171171
if (any(endCapStyle == 2) && any(st_geometry_type(x) == "POINT" | st_geometry_type(x) == "MULTIPOINT"))
172172
stop("Flat capstyle is incompatible with POINT/MULTIPOINT geometries") # nocov
173-
if (any(dist < 0) && any(st_dimension(x) < 1))
173+
if (any(drop_units(dist) < 0) && any(st_dimension(x) < 1))
174174
stop("Negative dist values may only be used with 1-D or 2-D geometries") # nocov
175175

176176
st_sfc(CPL_geos_op("buffer_with_style", x, dist, nQ, numeric(0), logical(0),

inst/docker/gdal/Dockerfile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,6 @@ RUN R CMD check --no-build-vignettes --no-manual --as-cran lwgeom_*.tar.gz
144144
RUN Rscript -e 'options(timeout=1200); install.packages("starsdata", repos="http://cran.uni-muenster.de/pebesma/")'
145145
RUN _R_CHECK_FORCE_SUGGESTS_=false R CMD check --no-build-vignettes --no-manual --as-cran stars_*.tar.gz
146146
#
147-
RUN wget -q https://cran.r-project.org/src/contrib/terra_1.8-42.tar.gz
148-
RUN Rscript -e 'install.packages("tinytest")'
149-
RUN R CMD check terra_1.8-42.tar.gz
147+
#RUN wget -q https://cran.r-project.org/src/contrib/terra_1.8-42.tar.gz
148+
#RUN Rscript -e 'install.packages("tinytest")'
149+
#RUN R CMD check terra_1.8-42.tar.gz

0 commit comments

Comments
 (0)