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

> ### Name: formatsitepair
> ### Title: Combines Biological and Environmental Data to Produce a
> ###   GDM-formatted Site-Pair Table
> ### Aliases: formatsitepair
> ### Keywords: gdm
> 
> ### ** Examples
> 
> ## tabular data
> # start with the southwest data table
>  head(southwest)
  species site    awcA  phTotal   sandA     shcA solumDepth     bio5     bio6
1    spp1 1066 14.4725 546.1800 71.3250 178.8650   875.1725 31.43824 5.058823
2    spp1 1026 16.2575 470.9950 68.8975 105.8400   928.4925 33.14412 4.852941
3    spp1 1025 23.1375 459.7425 71.4700  88.3550   892.2275 32.84000 4.817143
4    spp1 1026 16.2575 470.9950 68.8975 105.8400   928.4925 33.14412 4.852941
5    spp1 1027 17.0175 489.3950 74.6775 147.2125   951.9050 33.17813 4.590625
6    spp1 1047 17.3625 515.0825 75.7525 164.1875   981.4750 32.61579 4.676316
     bio15 bio18    bio19       Lat     Long
1 40.38235     0 132.6471 -32.99425 118.7573
2 48.20588     0 140.2941 -32.04285 118.3495
3 53.88571    43 145.0571 -31.99067 117.8260
4 48.20588     0 140.2941 -32.04285 118.3495
5 44.00000     0 135.6875 -32.09326 118.8736
6 42.00000     0 134.0263 -32.54354 118.8157
>  sppData <- southwest[c(1,2,13,14)]
>  envTab <- southwest[c(2:ncol(southwest))]
> 
> #########table type 1
> ## site-species table without coordinates
> testData1a <- reshape2::dcast(sppData, site~species)
Using Long as value column: use value.var to override.
Aggregation function missing: defaulting to length
> ##site-species table with coordinates
> coords <- unique(sppData[, 2:ncol(sppData)])
> testData1b <- merge(testData1a, coords, by="site")
> ## site-species, table-table
> exFormat1a <- formatsitepair(testData1a, 1, siteColumn="site", XColumn="Long",
+ YColumn="Lat", predData=envTab)
> 
> #' # next, let's try environmental raster data
> ## not run
> # rastFile <- system.file("./extdata/swBioclims.grd", package="gdm")
> # envRast <- stack(rastFile)
> 
> ## site-species, table-raster
> ## not run
> # exFormat1b <- formatsitepair(testData1b, 1, siteColumn="site", XColumn="Long",
> # YColumn="Lat", predData=envRast)
> 
> #########table type 2
> ## site xy spp list, table-table
> exFormat2a <- formatsitepair(sppData, 2, XColumn="Long", YColumn="Lat",
+ sppColumn="species", siteColumn="site", predData=envTab)
Warning in formatsitepair(sppData, 2, XColumn = "Long", YColumn = "Lat",  :
  No abundance column was specified, so the species data are
                assumed to be presences.
Aggregation function missing: defaulting to length
Error: cannot allocate vector of size 7 Kb
Execution halted