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

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: inShadow
> ### Title: Logical shadow calculation (is given point shaded?) for 3D
> ###   points considering sun position and obstacles
> ### Aliases: inShadow inShadow,SpatialPoints,Raster,missing,missing-method
> ###   inShadow,SpatialPoints,missing,ANY,ANY-method
> ###   inShadow,Raster,missing,ANY,ANY-method
> 
> ### ** Examples
> 
> # Method for 3D points - Manually defined
> 
> opar = par(mfrow = c(1, 3))
> 
> # Ground level
> location = sp::spsample(
+   rgeos::gBuffer(rgeos::gEnvelope(build), width = 20),
+   n = 80,
+   type = "regular"
+ )
Warning in proj4string(obj) :
  CRS object has comment, which is lost in output
> solar_pos = as.matrix(tmy[9, c("sun_az", "sun_elev")])
> s = inShadow(
+   location = location,
+   obstacles = build,
+   obstacles_height_field = "BLDG_HT",
+   solar_pos = solar_pos
+ )
Warning in sp::proj4string(location) :
  CRS object has comment, which is lost in output
Warning in showSRID(uprojargs, format = "PROJ", multiline = "NO", prefer_proj = prefer_proj) :
  Discarded datum Unknown based on WGS84 ellipsoid in CRS definition
Warning in proj4string(location) :
  CRS object has comment, which is lost in output
Warning in showSRID(uprojargs, format = "PROJ", multiline = "NO", prefer_proj = prefer_proj) :
  Discarded datum Unknown based on WGS84 ellipsoid in CRS definition

  |                                                                            
  |                                                                      |   0%Warning in proj4string(location) :
  CRS object has comment, which is lost in output
Warning in proj4string(obstacles) :
  CRS object has comment, which is lost in output
Warning in sp::proj4string(from) :
  CRS object has comment, which is lost in output
Warning in showSRID(uprojargs, format = "PROJ", multiline = "NO", prefer_proj = prefer_proj) :
  Discarded datum Unknown based on WGS84 ellipsoid in CRS definition
Warning in RGEOSBinTopoFunc(spgeom1, spgeom2, byid, id, drop_lower_td, unaryUnion_if_byid_false,  :
  spgeom1 and spgeom2 have different proj4 strings
Warning in sp::proj4string(from) :
  CRS object has comment, which is lost in output
Warning in showSRID(uprojargs, format = "PROJ", multiline = "NO", prefer_proj = prefer_proj) :
  Discarded datum Unknown based on WGS84 ellipsoid in CRS definition
Warning in RGEOSBinTopoFunc(spgeom1, spgeom2, byid, id, drop_lower_td, unaryUnion_if_byid_false,  :
  spgeom1 and spgeom2 have different proj4 strings
Warning in sp::proj4string(from) :
  CRS object has comment, which is lost in output
Warning in showSRID(uprojargs, format = "PROJ", multiline = "NO", prefer_proj = prefer_proj) :
  Discarded datum Unknown based on WGS84 ellipsoid in CRS definition
Warning in RGEOSBinTopoFunc(spgeom1, spgeom2, byid, id, drop_lower_td, unaryUnion_if_byid_false,  :
  spgeom1 and spgeom2 have different proj4 strings
Warning in sp::proj4string(from) :
  CRS object has comment, which is lost in output
Warning in showSRID(uprojargs, format = "PROJ", multiline = "NO", prefer_proj = prefer_proj) :
  Discarded datum Unknown based on WGS84 ellipsoid in CRS definition
Warning in RGEOSBinTopoFunc(spgeom1, spgeom2, byid, id, drop_lower_td, unaryUnion_if_byid_false,  :
  spgeom1 and spgeom2 have different proj4 strings
Warning in sp::proj4string(from) :
  CRS object has comment, which is lost in output
Warning in showSRID(uprojargs, format = "PROJ", multiline = "NO", prefer_proj = prefer_proj) :
  Discarded datum Unknown based on WGS84 ellipsoid in CRS definition
Warning in RGEOSBinTopoFunc(spgeom1, spgeom2, byid, id, drop_lower_td, unaryUnion_if_byid_false,  :
  spgeom1 and spgeom2 have different proj4 strings
Warning in sp::proj4string(from) :
  CRS object has comment, which is lost in output
Warning in showSRID(uprojargs, format = "PROJ", multiline = "NO", prefer_proj = prefer_proj) :
  Discarded datum Unknown based on WGS84 ellipsoid in CRS definition
Warning in RGEOSBinTopoFunc(spgeom1, spgeom2, byid, id, drop_lower_td, unaryUnion_if_byid_false,  :
  spgeom1 and spgeom2 have different proj4 strings
Warning in sp::proj4string(from) :
  CRS object has comment, which is lost in output
Warning in showSRID(uprojargs, format = "PROJ", multiline = "NO", prefer_proj = prefer_proj) :
  Discarded datum Unknown based on WGS84 ellipsoid in CRS definition
Warning in RGEOSBinTopoFunc(spgeom1, spgeom2, byid, id, drop_lower_td, unaryUnion_if_byid_false,  :
  spgeom1 and spgeom2 have different proj4 strings
Warning in sp::proj4string(from) :
  CRS object has comment, which is lost in output
Warning in showSRID(uprojargs, format = "PROJ", multiline = "NO", prefer_proj = prefer_proj) :
  Discarded datum Unknown based on WGS84 ellipsoid in CRS definition
Warning in RGEOSBinTopoFunc(spgeom1, spgeom2, byid, id, drop_lower_td, unaryUnion_if_byid_false,  :
  spgeom1 and spgeom2 have different proj4 strings
Warning in sp::proj4string(from) :
  CRS object has comment, which is lost in output
Warning in showSRID(uprojargs, format = "PROJ", multiline = "NO", prefer_proj = prefer_proj) :
  Discarded datum Unknown based on WGS84 ellipsoid in CRS definition
Warning in RGEOSBinTopoFunc(spgeom1, spgeom2, byid, id, drop_lower_td, unaryUnion_if_byid_false,  :
  spgeom1 and spgeom2 have different proj4 strings
Warning in sp::proj4string(from) :
  CRS object has comment, which is lost in output
Warning in showSRID(uprojargs, format = "PROJ", multiline = "NO", prefer_proj = prefer_proj) :
  Discarded datum Unknown based on WGS84 ellipsoid in CRS definition
Warning in RGEOSBinTopoFunc(spgeom1, spgeom2, byid, id, drop_lower_td, unaryUnion_if_byid_false,  :
  spgeom1 and spgeom2 have different proj4 strings
Warning in sp::proj4string(from) :
  CRS object has comment, which is lost in output
Warning in showSRID(uprojargs, format = "PROJ", multiline = "NO", prefer_proj = prefer_proj) :
  Discarded datum Unknown based on WGS84 ellipsoid in CRS definition
Warning in RGEOSBinTopoFunc(spgeom1, spgeom2, byid, id, drop_lower_td, unaryUnion_if_byid_false,  :
  spgeom1 and spgeom2 have different proj4 strings
Warning in sp::proj4string(from) :
  CRS object has comment, which is lost in output
Warning in showSRID(uprojargs, format = "PROJ", multiline = "NO", prefer_proj = prefer_proj) :
  Discarded datum Unknown based on WGS84 ellipsoid in CRS definition
Warning in RGEOSBinTopoFunc(spgeom1, spgeom2, byid, id, drop_lower_td, unaryUnion_if_byid_false,  :
  spgeom1 and spgeom2 have different proj4 strings
Warning in sp::proj4string(from) :
  CRS object has comment, which is lost in output
Warning in showSRID(uprojargs, format = "PROJ", multiline = "NO", prefer_proj = prefer_proj) :
  Discarded datum Unknown based on WGS84 ellipsoid in CRS definition
Warning in RGEOSBinTopoFunc(spgeom1, spgeom2, byid, id, drop_lower_td, unaryUnion_if_byid_false,  :
  spgeom1 and spgeom2 have different proj4 strings
Warning in sp::proj4string(from) :
  CRS object has comment, which is lost in output
Warning in showSRID(uprojargs, format = "PROJ", multiline = "NO", prefer_proj = prefer_proj) :
  Discarded datum Unknown based on WGS84 ellipsoid in CRS definition
Warning in RGEOSBinTopoFunc(spgeom1, spgeom2, byid, id, drop_lower_td, unaryUnion_if_byid_false,  :
  spgeom1 and spgeom2 have different proj4 strings
Warning in sp::proj4string(from) :
  CRS object has comment, which is lost in output
Warning in showSRID(uprojargs, format = "PROJ", multiline = "NO", prefer_proj = prefer_proj) :
  Discarded datum Unknown based on WGS84 ellipsoid in CRS definition
Warning in RGEOSBinTopoFunc(spgeom1, spgeom2, byid, id, drop_lower_td, unaryUnion_if_byid_false,  :
  spgeom1 and spgeom2 have different proj4 strings
Warning in sp::proj4string(from) :
  CRS object has comment, which is lost in output
Warning in showSRID(uprojargs, format = "PROJ", multiline = "NO", prefer_proj = prefer_proj) :
  Discarded datum Unknown based on WGS84 ellipsoid in CRS definition
Warning in RGEOSBinTopoFunc(spgeom1, spgeom2, byid, id, drop_lower_td, unaryUnion_if_byid_false,  :
  spgeom1 and spgeom2 have different proj4 strings
Warning in sp::proj4string(from) :
  CRS object has comment, which is lost in output
Warning in showSRID(uprojargs, format = "PROJ", multiline = "NO", prefer_proj = prefer_proj) :
  Discarded datum Unknown based on WGS84 ellipsoid in CRS definition
Warning in RGEOSBinTopoFunc(spgeom1, spgeom2, byid, id, drop_lower_td, unaryUnion_if_byid_false,  :
  spgeom1 and spgeom2 have different proj4 strings
Warning in sp::proj4string(from) :
  CRS object has comment, which is lost in output
Warning in showSRID(uprojargs, format = "PROJ", multiline = "NO", prefer_proj = prefer_proj) :
  Discarded datum Unknown based on WGS84 ellipsoid in CRS definition
Warning in RGEOSBinTopoFunc(spgeom1, spgeom2, byid, id, drop_lower_td, unaryUnion_if_byid_false,  :
  spgeom1 and spgeom2 have different proj4 strings
Warning in sp::proj4string(from) :
  CRS object has comment, which is lost in output
Warning in showSRID(uprojargs, format = "PROJ", multiline = "NO", prefer_proj = prefer_proj) :
  Discarded datum Unknown based on WGS84 ellipsoid in CRS definition
Warning in RGEOSBinTopoFunc(spgeom1, spgeom2, byid, id, drop_lower_td, unaryUnion_if_byid_false,  :
  spgeom1 and spgeom2 have different proj4 strings
Warning in sp::proj4string(from) :
  CRS object has comment, which is lost in output
Warning in showSRID(uprojargs, format = "PROJ", multiline = "NO", prefer_proj = prefer_proj) :
  Discarded datum Unknown based on WGS84 ellipsoid in CRS definition
Warning in RGEOSBinTopoFunc(spgeom1, spgeom2, byid, id, drop_lower_td, unaryUnion_if_byid_false,  :
  spgeom1 and spgeom2 have different proj4 strings
Warning in sp::proj4string(from) :
  CRS object has comment, which is lost in output
Warning in showSRID(uprojargs, format = "PROJ", multiline = "NO", prefer_proj = prefer_proj) :
  Discarded datum Unknown based on WGS84 ellipsoid in CRS definition
Warning in RGEOSBinTopoFunc(spgeom1, spgeom2, byid, id, drop_lower_td, unaryUnion_if_byid_false,  :
  spgeom1 and spgeom2 have different proj4 strings
Warning in sp::proj4string(from) :
  CRS object has comment, which is lost in output
Warning in showSRID(uprojargs, format = "PROJ", multiline = "NO", prefer_proj = prefer_proj) :
  Discarded datum Unknown based on WGS84 ellipsoid in CRS definition
Warning in RGEOSBinTopoFunc(spgeom1, spgeom2, byid, id, drop_lower_td, unaryUnion_if_byid_false,  :
  spgeom1 and spgeom2 have different proj4 strings
Warning in sp::proj4string(from) :
  CRS object has comment, which is lost in output
Warning in showSRID(uprojargs, format = "PROJ", multiline = "NO", prefer_proj = prefer_proj) :
  Discarded datum Unknown based on WGS84 ellipsoid in CRS definition
Warning in RGEOSBinTopoFunc(spgeom1, spgeom2, byid, id, drop_lower_td, unaryUnion_if_byid_false,  :
  spgeom1 and spgeom2 have different proj4 strings
Warning in sp::proj4string(from) :
  CRS object has comment, which is lost in output
Warning in showSRID(uprojargs, format = "PROJ", multiline = "NO", prefer_proj = prefer_proj) :
  Discarded datum Unknown based on WGS84 ellipsoid in CRS definition
Warning in RGEOSBinTopoFunc(spgeom1, spgeom2, byid, id, drop_lower_td, unaryUnion_if_byid_false,  :
  spgeom1 and spgeom2 have different proj4 strings
Warning in sp::proj4string(from) :
  CRS object has comment, which is lost in output
Warning in showSRID(uprojargs, format = "PROJ", multiline = "NO", prefer_proj = prefer_proj) :
  Discarded datum Unknown based on WGS84 ellipsoid in CRS definition
Warning in RGEOSBinTopoFunc(spgeom1, spgeom2, byid, id, drop_lower_td, unaryUnion_if_byid_false,  :
  spgeom1 and spgeom2 have different proj4 strings
Warning in RGEOSDistanceFunc(spgeom1, spgeom2, byid, "rgeos_distance") :
  spgeom1 and spgeom2 have different proj4 strings
Warning in RGEOSBinPredFunc(spgeom1, spgeom2, byid, func) :
  spgeom1 and spgeom2 have different proj4 strings
Error in .local(x, y, returnList, fn, ...) : 
  identicalCRS(x, y) is not TRUE
Calls: inShadow ... .shadowHeightPnt -> <Anonymous> -> <Anonymous> -> .local -> stopifnot
Execution halted