Running examples in 'sf-Ex.R' failed
The error most likely occurred in:

> ### Name: sf
> ### Title: Create sf object
> ### Aliases: sf st_sf [.sf print.sf
> 
> ### ** Examples
> 
> g = st_sfc(st_point(1:2))
> st_sf(a=3,g)
Simple feature collection with 1 feature and 1 field
Geometry type: POINT
Dimension:     XY
Bounding box:  xmin: 1 ymin: 2 xmax: 1 ymax: 2
CRS:           NA
  a           g
1 3 POINT (1 2)
> st_sf(g, a=3)
Simple feature collection with 1 feature and 1 field
Geometry type: POINT
Dimension:     XY
Bounding box:  xmin: 1 ymin: 2 xmax: 1 ymax: 2
CRS:           NA
  a           g
1 3 POINT (1 2)
> st_sf(a=3, st_sfc(st_point(1:2))) # better to name it!
Simple feature collection with 1 feature and 1 field
Geometry type: POINT
Dimension:     XY
Bounding box:  xmin: 1 ymin: 2 xmax: 1 ymax: 2
CRS:           NA
  a st_sfc.st_point.1.2..
1 3           POINT (1 2)
> # create empty structure with preallocated empty geometries:
> nrows <- 10
> geometry = st_sfc(lapply(1:nrows, function(x) st_geometrycollection()))
> df <- st_sf(id = 1:nrows, geometry = geometry)
> g = st_sfc(st_point(1:2), st_point(3:4))
> s = st_sf(a=3:4, g)
> s[1,]
Simple feature collection with 1 feature and 1 field
Geometry type: POINT
Dimension:     XY
Bounding box:  xmin: 1 ymin: 2 xmax: 1 ymax: 2
CRS:           NA
  a           g
1 3 POINT (1 2)
> class(s[1,])
[1] "sf"         "data.frame"
> s[,1]
Simple feature collection with 2 features and 1 field
Geometry type: POINT
Dimension:     XY
Bounding box:  xmin: 1 ymin: 2 xmax: 3 ymax: 4
CRS:           NA
  a           g
1 3 POINT (1 2)
2 4 POINT (3 4)
> class(s[,1])
[1] "sf"         "data.frame"
> s[,2]
Simple feature collection with 2 features and 0 fields
Geometry type: POINT
Dimension:     XY
Bounding box:  xmin: 1 ymin: 2 xmax: 3 ymax: 4
CRS:           NA
            g
1 POINT (1 2)
2 POINT (3 4)
> class(s[,2])
[1] "sf"         "data.frame"
> g = st_sf(a=2:3, g)
> pol = st_sfc(st_polygon(list(cbind(c(0,3,3,0,0),c(0,0,3,3,0)))))
> h = st_sf(r = 5, pol)
> g[h,]