Running examples in ‘agridat-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: wallace.iowaland
> ### Title: Iowa farmland values by county in 1925
> ### Aliases: wallace.iowaland
> ### Keywords: datasets
> 
> ### ** Examples
> 
> 
> library(agridat)
> data(wallace.iowaland)
> dat <- wallace.iowaland
> 
> # Interesting trends involving latitude
> libs(lattice)
> splom(~dat[,-c(1:2)], type=c('p','smooth'), lwd=2, main="wallace.iowaland")
> 
> # Means. Similar to Wallace table 1
> apply(dat[, c('yield','corn','grain','untillable','fedval')], 2, mean)
     yield       corn      grain untillable     fedval 
  39.11111   32.47475   21.55556   18.84848  118.67677 
> 
> # Correlations.  Similar to Wallace table 2
> round(cor(dat[, c('yield','corn','grain','untillable','fedval')]),2)
           yield  corn grain untillable fedval
yield       1.00  0.30  0.27      -0.16   0.61
corn        0.30  1.00  0.61      -0.82   0.81
grain       0.27  0.61  1.00      -0.59   0.62
untillable -0.16 -0.82 -0.59       1.00  -0.69
fedval      0.61  0.81  0.62      -0.69   1.00
> 
> m1 <- lm(fedval ~ yield + corn + grain + untillable, dat)
> summary(m1) # estimates similar to Wallace, top of p. 389

Call:
lm(formula = fedval ~ yield + corn + grain + untillable, data = dat)

Residuals:
    Min      1Q  Median      3Q     Max 
-36.392  -7.797  -0.110   6.068  31.778 

Coefficients:
            Estimate Std. Error t value Pr(>|t|)    
(Intercept) -64.7071    17.3420  -3.731 0.000326 ***
yield         3.1488     0.3717   8.472 3.24e-13 ***
corn          1.8175     0.3090   5.881 6.20e-08 ***
grain         0.5394     0.2566   2.102 0.038229 *  
untillable   -0.5527     0.2697  -2.049 0.043270 *  
---
Signif. codes:  0 ‘***’ 0.001 ‘**’ 0.01 ‘*’ 0.05 ‘.’ 0.1 ‘ ’ 1

Residual standard error: 11.61 on 94 degrees of freedom
Multiple R-squared:  0.819,	Adjusted R-squared:  0.8113 
F-statistic: 106.3 on 4 and 94 DF,  p-value: < 2.2e-16

> 
> # Choropleth map
> libs(maps)
Installing package into ‘/tmp/Rtmp1XMQFu/RLIBS_5c58f4f5ab642’
(as ‘lib’ is unspecified)
* installing *source* package ‘maps’ ...
** package ‘maps’ successfully unpacked and MD5 sums checked
** using staged installation
checking for gawk... gawk
configure: creating ./config.status
config.status: creating src/Makefile
** libs
make[1]: Entering directory '/tmp/RtmpbkfAbS/R.INSTALL6af56421dcf9c/maps/src'
make -f "/home/hornik/tmp/R.check/r-devel-gcc/Work/build/etc/Makeconf" -f Makefile init.o mapclip.o mapget.o smooth.o thin.o 
make[2]: Entering directory '/tmp/RtmpbkfAbS/R.INSTALL6af56421dcf9c/maps/src'
gcc-14 -I"/home/hornik/tmp/R.check/r-devel-gcc/Work/build/include" -DNDEBUG   -I/usr/local/include -D_FORTIFY_SOURCE=3   -fpic  -g -O2 -Wall -Wstrict-prototypes -pedantic -mtune=native  -c init.c -o init.o
gcc-14 -I"/home/hornik/tmp/R.check/r-devel-gcc/Work/build/include" -DNDEBUG   -I/usr/local/include -D_FORTIFY_SOURCE=3   -fpic  -g -O2 -Wall -Wstrict-prototypes -pedantic -mtune=native  -c mapclip.c -o mapclip.o
gcc-14 -I"/home/hornik/tmp/R.check/r-devel-gcc/Work/build/include" -DNDEBUG   -I/usr/local/include -D_FORTIFY_SOURCE=3   -fpic  -g -O2 -Wall -Wstrict-prototypes -pedantic -mtune=native  -c mapget.c -o mapget.o
gcc-14 -I"/home/hornik/tmp/R.check/r-devel-gcc/Work/build/include" -DNDEBUG   -I/usr/local/include -D_FORTIFY_SOURCE=3   -fpic  -g -O2 -Wall -Wstrict-prototypes -pedantic -mtune=native  -c smooth.c -o smooth.o
gcc-14 -I"/home/hornik/tmp/R.check/r-devel-gcc/Work/build/include" -DNDEBUG   -I/usr/local/include -D_FORTIFY_SOURCE=3   -fpic  -g -O2 -Wall -Wstrict-prototypes -pedantic -mtune=native  -c thin.c -o thin.o
make[2]: Leaving directory '/tmp/RtmpbkfAbS/R.INSTALL6af56421dcf9c/maps/src'
"/home/hornik/tmp/R.check/r-devel-gcc/Work/build/bin/R" CMD SHLIB -o maps.so init.o mapclip.o mapget.o smooth.o thin.o 
make[2]: Entering directory '/tmp/RtmpbkfAbS/R.INSTALL6af56421dcf9c/maps/src'
gcc-14 -shared -L/home/hornik/tmp/R.check/r-devel-gcc/Work/build/lib -Wl,-O1 -o maps.so init.o mapclip.o mapget.o smooth.o thin.o -L/home/hornik/tmp/R.check/r-devel-gcc/Work/build/lib -lR
make[2]: Leaving directory '/tmp/RtmpbkfAbS/R.INSTALL6af56421dcf9c/maps/src'
make[2]: Entering directory '/tmp/RtmpbkfAbS/R.INSTALL6af56421dcf9c/maps/src'
make[2]: Leaving directory '/tmp/RtmpbkfAbS/R.INSTALL6af56421dcf9c/maps/src'
make -f "/home/hornik/tmp/R.check/r-devel-gcc/Work/build/etc/Makeconf" -f Makefile Gmake
make[2]: Entering directory '/tmp/RtmpbkfAbS/R.INSTALL6af56421dcf9c/maps/src'
gcc-14 -g -O2 -Wall -Wstrict-prototypes -pedantic -mtune=native  -I/usr/local/include -Wl,-O1  Gmake.c   -o Gmake
make[2]: Leaving directory '/tmp/RtmpbkfAbS/R.INSTALL6af56421dcf9c/maps/src'
make -f "/home/hornik/tmp/R.check/r-devel-gcc/Work/build/etc/Makeconf" -f Makefile Lmake
make[2]: Entering directory '/tmp/RtmpbkfAbS/R.INSTALL6af56421dcf9c/maps/src'
gcc-14 -g -O2 -Wall -Wstrict-prototypes -pedantic -mtune=native  -I/usr/local/include -Wl,-O1  Lmake.c   -o Lmake
make[2]: Leaving directory '/tmp/RtmpbkfAbS/R.INSTALL6af56421dcf9c/maps/src'
make -f "/home/hornik/tmp/R.check/r-devel-gcc/Work/build/etc/Makeconf" -f Makefile world2.line
make[2]: Entering directory '/tmp/RtmpbkfAbS/R.INSTALL6af56421dcf9c/maps/src'
Converting world to world2
gawk -f ./convert.awk < world.line > world2.line
make[2]: Leaving directory '/tmp/RtmpbkfAbS/R.INSTALL6af56421dcf9c/maps/src'
make -f "/home/hornik/tmp/R.check/r-devel-gcc/Work/build/etc/Makeconf" -f Makefile county.L state.L usa.L nz.L world.L world2.L italy.L france.L state.vbm.L state.carto.L lakes.L
make[2]: Entering directory '/tmp/RtmpbkfAbS/R.INSTALL6af56421dcf9c/maps/src'
./Lmake 0 s b county.line county.linestats ../inst/mapdata/county.L
./Lmake 0 s b state.line state.linestats ../inst/mapdata/state.L
./Lmake 0 s b usa.line usa.linestats ../inst/mapdata/usa.L
./Lmake 0 s b nz.line nz.linestats ../inst/mapdata/nz.L
./Lmake 0 s b world.line world.linestats ../inst/mapdata/world.L
./Lmake 0 s b world2.line world2.linestats ../inst/mapdata/world2.L
./Lmake 0 s b italy.line italy.linestats ../inst/mapdata/italy.L
./Lmake 0 s b france.line france.linestats ../inst/mapdata/france.L
./Lmake 0 p b state.vbm.line state.vbm.linestats ../inst/mapdata/state.vbm.L
./Lmake 0 p b state.carto.line state.carto.linestats ../inst/mapdata/state.carto.L
./Lmake 0 s b lakes.line lakes.linestats ../inst/mapdata/lakes.L
make[2]: Leaving directory '/tmp/RtmpbkfAbS/R.INSTALL6af56421dcf9c/maps/src'
make -f "/home/hornik/tmp/R.check/r-devel-gcc/Work/build/etc/Makeconf" -f Makefile county.G state.G usa.G nz.G world.G world2.G italy.G france.G state.vbm.G state.carto.G lakes.G
make[2]: Entering directory '/tmp/RtmpbkfAbS/R.INSTALL6af56421dcf9c/maps/src'
./Gmake b county.gon county.gonstats ../inst/mapdata/county.G ../inst/mapdata/county.L
./Gmake b state.gon state.gonstats ../inst/mapdata/state.G ../inst/mapdata/state.L
./Gmake b usa.gon usa.gonstats ../inst/mapdata/usa.G ../inst/mapdata/usa.L
./Gmake b nz.gon nz.gonstats ../inst/mapdata/nz.G ../inst/mapdata/nz.L
./Gmake b world.gon world.gonstats ../inst/mapdata/world.G ../inst/mapdata/world.L
./Gmake b world2.gon world2.gonstats ../inst/mapdata/world2.G ../inst/mapdata/world2.L
./Gmake b italy.gon italy.gonstats ../inst/mapdata/italy.G ../inst/mapdata/italy.L
./Gmake b france.gon france.gonstats ../inst/mapdata/france.G ../inst/mapdata/france.L
./Gmake b state.vbm.gon state.vbm.gonstats ../inst/mapdata/state.vbm.G ../inst/mapdata/state.vbm.L
./Gmake b state.carto.gon state.carto.gonstats ../inst/mapdata/state.carto.G ../inst/mapdata/state.carto.L
./Gmake b lakes.gon lakes.gonstats ../inst/mapdata/lakes.G ../inst/mapdata/lakes.L
make[2]: Leaving directory '/tmp/RtmpbkfAbS/R.INSTALL6af56421dcf9c/maps/src'
make -f "/home/hornik/tmp/R.check/r-devel-gcc/Work/build/etc/Makeconf" -f Makefile county.N state.N usa.N nz.N world.N world2.N italy.N france.N state.vbm.N state.carto.N lakes.N
make[2]: Entering directory '/tmp/RtmpbkfAbS/R.INSTALL6af56421dcf9c/maps/src'
make[2]: Leaving directory '/tmp/RtmpbkfAbS/R.INSTALL6af56421dcf9c/maps/src'
make[1]: Leaving directory '/tmp/RtmpbkfAbS/R.INSTALL6af56421dcf9c/maps/src'
installing to /tmp/Rtmp1XMQFu/RLIBS_5c58f4f5ab642/00LOCK-maps/00new/maps/libs
** R
** data
*** moving datasets to lazyload DB
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded from temporary location
** checking absolute paths in shared objects and dynamic libraries
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (maps)
> data(county.fips)
> dat <- transform(dat, polnm = paste0('iowa,',county)) # polnm example: iowa,adair
> 
> libs("latticeExtra") # for mapplot
> redblue <- colorRampPalette(c("firebrick", "lightgray", "#375997"))
> mapplot(polnm~fedval , data=dat, colramp=redblue,
+         main="wallace.iowaland - Federal land values",
+         xlab="Land value, dollars per acre",
+         scales=list(draw=FALSE),
+         map=map('county', 'iowa', plot=FALSE,
+           fill=TRUE, projection="mercator"))
Error in map("county", "iowa", plot = FALSE, fill = TRUE, projection = "mercator") : 
  Please install the package 'mapproj' for projections.
Calls: mapplot -> mapplot.formula -> map
Execution halted