Okay, just to document for posterity/people who are at a similar computer literacy level to me-- what I did was in my Terminal app, ran
gfortran -print-file-name=libgfortran.dylib
and copied the result (a long path, /usr/local/Cellar/gcc/8.2.0/lib/gcc/8/gcc/x86_64-apple-darwin17.7.0/8.2.0/../../../libgfortran.dylib). Then, again in the Terminal, I ran
vi .R/Makevars
And edited the file so it had a line with
FLIBS=-L/usr/local/Cellar/gcc/8.2.0/lib/gcc/8/gcc/x86_64-apple-darwin17.7.0/8.2.0/../../../libgfortran.dylib
Where all that nonsense after the -L was the result of running the first command. After all that, the packrat::restore() got further, and I'm now in the same spot on my local machine as I was on cloud! Here is the full error message:
The command failed with output:
* installing *source* package 'maps' ...
** package 'maps' successfully unpacked and MD5 sums checked
** libs
** arch -
clang -Wall -g -O2 -I/usr/local/include -L/usr/local/lib Gmake.c -o Gmake
clang -Wall -g -O2 -I/usr/local/include -L/usr/local/lib Lmake.c -o Lmake
Converting world to world2
f convert.awk < world.line > world2.line
/bin/sh: f: command not found
make: [world2.line] Error 127 (ignored)
make county.L state.L usa.L nz.L world.L world2.L italy.L france.L state.vbm.L state.carto.L
./Lmake 0 s b county.line county.linestats ../inst/mapdata/county.L
./Lmake 0 s b state.line state.linestats ../inst/m
In addition: Warning message:
In packrat::restore() :
The most recent snapshot was generated using R version 3.1.2