You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed sf frequently drops attributes when using dplyr, this contrasts to dplyr "normal behavior". I would generally say retaining attributes is desirable both for users that want to retain extra information and for package building on sf. These changes improve this and retain the attributes. Let me know what you think, I can add tests if desirable. The current tests don't show any failures.
@bart1 that sounds reasonable; would you be willing to carry out a complete CRAN reverse dependency check on this change, and, if any, handle downstream consequences?
@bart1 that sounds reasonable; would you be willing to carry out a complete CRAN reverse dependency check on this change, and, if any, handle downstream consequences?
I just started running revdepcheck I see this takes several days. Assuming you don't have a faster way I will see how many error pop up. Up to now (the first dozen packages), it seems fine.
I now ran a bunch of tests, besides the NAMESPACE issue I have not noticed regressions in other package. There are however quite a few package that fail to test with revdepcheck, do you have any experiences how to prevent these kind of issues, I already tried a timeout of 1800 seconds:
Platform
field
value
version
R version 4.6.1 (2026-06-24)
os
Ubuntu 26.04.1 LTS
system
x86_64, linux-gnu
ui
X11
language
(EN)
collate
en_US.UTF-8
ctype
en_US.UTF-8
tz
Europe/Amsterdam
date
2026-09-09
pandoc
3.7.0.2 @ /usr/bin/pandoc
quarto
NA
Dependencies
package
old
new
Δ
sf
1.1-2
1.1-3
*
classInt
0.4-11
NA
*
DBI
1.3.0
1.3.0
e1071
1.7-17
NA
*
proxy
0.4-29
NA
*
Rcpp
1.1.2
1.1.2
s2
1.1.12
1.1.12
units
1.0-1
1.0-1
wk
0.9.5
0.9.5
Revdeps
Failed to check (144)
package
version
error
warning
note
actel
?
adehabitatHR
?
adw
?
AMISforInfectiousDiseases
?
apsimx
?
arcgisutils
0.6.0
1
atakrig
?
ausplotsR
?
awdb
0.1.4
1
bamlss
?
bayesTFR
?
blisa
?
BOLDconnectR
?
camtrapR
?
cartogramR
?
cartography
?
CDSE
?
cisp
?
CompositionalSR
?
CopernicusDEM
?
d3po
?
dartR.spatial
?
datazoom.amazonia
?
DeclareDesign
?
Directional
?
distanceto
?
DRquality
?
dwp
?
ecochange
?
eks
?
emstreeR
?
enmSdmX
?
epiR
?
espadon
?
fasterRaster
?
fractalforest
?
fsr
?
gbm.auto
?
GDAtools
?
geocausal
?
geocomplexity
?
GeoFIS
1.1.1
1
GEOmap
?
GGoutlieR
?
GISINTEGRATION
?
gmwmx2
?
GREENeR
?
Guerry
?
GWlasso
?
GWmodel
?
GWSDAT
?
HDSpatialScan
?
hemispheR
?
hero
?
HSAUR3
?
ie2miscdata
?
infocausality
?
infoxtr
?
INLAspacetime
?
intamap
?
intamapInteractive
?
knfi
?
landsat
?
lgcp
?
linkeR
0.1.3
1
localsp
?
mapStats
?
MetaNet
?
meteo
?
MIAmaxent
?
mlr
?
ModelMap
?
movegroup
?
mrddGlobal
?
MRG
?
multiflexscan
?
multiscape
?
neuroimaGene
?
OSTA
?
pacu
?
palettephines
?
pargasite
?
patternize
?
pc
?
planisphere
?
PopGenReport
?
protolite
2.4.0
1
psgp
?
pspatreg
?
R2BayesX
?
rasterbc
?
rasterDT
?
RchivalTag
?
recluster
?
recogito
?
recolorize
?
redist
?
ref.ICAR
?
rerddapXtracto
?
RGENERATEPREC
?
rgeoda
?
rgplates
?
rivnet
?
roroph
?
RRgeo
?
rsocialwatcher
?
rtop
?
SegEnvIneq
?
sftime
?
siland
?
SimSurvey
?
soilassessment
?
soilKey
0.9.184
1
sorvi
?
spacetime
?
SpaceTimeBSS
?
SPARTAAS
?
SpatialBSS
?
spatialEco
?
spatialreg
?
spdep
?
spdgp
?
spmoran
?
spsur
?
sshicm
?
stgam
1.2.1
1
stppSim
?
streamDAG
?
surveillance
?
SWTools
?
tabs
?
taxify
0.4.0
1
TeachingDemos
?
terra
?
tmap.sources
?
tmapverse
?
trackeRapp
?
ulex
?
ursa
?
USA.state.boundaries
?
WaterBalanceR
?
weed
?
wflo
?
wxgenR
?
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I noticed
sffrequently drops attributes when usingdplyr, this contrasts todplyr"normal behavior". I would generally say retaining attributes is desirable both for users that want to retain extra information and for package building onsf. These changes improve this and retain the attributes. Let me know what you think, I can add tests if desirable. The current tests don't show any failures.This is the current behaviour:
This contrasts to the default behaviour of dplyr where attributes are retained (except for
ungroup):With this pull request the behaviour of
sfis similar todplyrhere is the test case from above with the pull request: