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

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: CoordSf
> ### Title: Visualise sf objects
> ### Aliases: CoordSf coord_sf ggsf GeomSf geom_sf geom_sf_label
> ###   geom_sf_text StatSf stat_sf
> ### Keywords: datasets
> 
> ### ** Examples
> 
> if (requireNamespace("sf", quietly = TRUE)) {
+ nc <- sf::st_read(system.file("shape/nc.shp", package = "sf"), quiet = TRUE)
+ ggplot(nc) +
+   geom_sf(aes(fill = AREA))
+ 
+ # If not supplied, coord_sf() will take the CRS from the first layer
+ # and automatically transform all other layers to use that CRS. This
+ # ensures that all data will correctly line up
+ nc_3857 <- sf::st_transform(nc, "+init=epsg:3857")
+ ggplot() +
+   geom_sf(data = nc) +
+   geom_sf(data = nc_3857, colour = "red", fill = NA)
+ 
+ # Unfortunately if you plot other types of feature you'll need to use
+ # show.legend to tell ggplot2 what type of legend to use
+ nc_3857$mid <- sf::st_centroid(nc_3857$geometry)
+ ggplot(nc_3857) +
+   geom_sf(colour = "white") +
+   geom_sf(aes(geometry = mid, size = AREA), show.legend = "point")
+ 
+ # You can also use layers with x and y aesthetics: these are
+ # assumed to already be in the common CRS.
+ ggplot(nc) +
+   geom_sf() +
+   annotate("point", x = -80, y = 35, colour = "red", size = 4)
+ 
+ # Thanks to the power of sf, a geom_sf nicely handles varying projections
+ # setting the aspect ratio correctly.
+ library(maps)
+ world1 <- sf::st_as_sf(map('world', plot = FALSE, fill = TRUE))
+ ggplot() + geom_sf(data = world1)
+ 
+ world2 <- sf::st_transform(
+   world1,
+   "+proj=laea +y_0=0 +lon_0=155 +lat_0=-90 +ellps=WGS84 +no_defs"
+ )
+ ggplot() + geom_sf(data = world2)
+ 
+ # To add labels, use geom_sf_label().
+ ggplot(nc_3857[1:3, ]) +
+    geom_sf(aes(fill = AREA)) +
+    geom_sf_label(aes(label = NAME))
+ }
Warning in CPL_crs_from_proj4string(x) :
  GDAL Message 1: +init=epsg:XXXX syntax is deprecated. It might return a CRS with a non-EPSG compliant axis order.
Warning in CPL_transform(x, crs$proj4string) :
  GDAL Error 1: PROJ: proj_create_operations: At least one of the operation lacks a source and/or target CRS
Warning in CPL_transform(x, crs$proj4string) :
  GDAL Error 6: Cannot find coordinate operations from `GEOGCRS["unknown",DATUM["North American Datum 1927",ELLIPSOID["Clarke 1866",6378206.4,294.978698213898,LENGTHUNIT["metre",1]],ID["EPSG",6267]],PRIMEM["Greenwich",0,ANGLEUNIT["degree",0.0174532925199433],ID["EPSG",8901]],CS[ellipsoidal,2],AXIS["longitude",east,ORDER[1],ANGLEUNIT["degree",0.0174532925199433,ID["EPSG",9122]]],AXIS["latitude",north,ORDER[2],ANGLEUNIT["degree",0.0174532925199433,ID["EPSG",9122]]]]' to `PROJCRS["WGS 84 / Pseudo-Mercator",BASEGEOGCRS["WGS 84",DATUM["World Geodetic System 1984",ELLIPSOID["WGS 84",6378137,298.257223563,LENGTHUNIT["metre",1]]],PRIMEM["Greenwich",0,ANGLEUNIT["degree",0.0174532925199433]],ID["EPSG",4326]],CONVERSION["unnamed",METHOD["Popular Visualisation Pseudo Mercator",ID["EPSG",1024]],PARAMETER["Latitude of natural origin",0,ANGLEUNIT["degree",0.0174532925199433],ID["EPSG",8801]],PARAMETER["Longitude of natural origin",0,ANGLEUNIT["degree",0.0174532925199433],ID["EPSG",8802]],PARAMETER["Fal [... truncated]
Error in CPL_transform(x, crs$proj4string) : 
  OGRCreateCoordinateTransformation() returned NULL: PROJ available?
Calls: <Anonymous> ... st_transform -> st_transform.sfc -> structure -> CPL_transform
Execution halted