As a beginner with R packages, I was pleased to discover Hadley Wickham's R Packages book online. All was going well until the bottom of page three where he provides code (copied below) for "checking that you have everything installed". The reader is left on his or her own if they get an error message when running the code (which I did).
Is the problem that my installations of R or R-studio or devtools are in the wrong directories? If I can't get past this step, will I still be able to use/benefit from the rest of his book?
Below, I've copied his code, and then I show the output and error message:
#> '/Library/Frameworks/R.framework/Resources/bin/R' --vanilla CMD SHLIB foo.c
#> clang -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG
#> -I/usr/local/include -I/usr/local/include/freetype2 -I/opt/X11/include
#> -fPIC -Wall -mtune=core2 -g -O2 -c foo.c -o foo.o
#> clang -dynamiclib -Wl,-headerpad_max_install_names -undefined dynamic_lookup
#> -single_module -multiply_defined suppress -L/usr/local/lib -o foo.so foo.o
#> -F/Library/Frameworks/R.framework/.. -framework R -Wl,-framework
OUTPUT WITH ERROR MESSAGE
"C:/PROGRA~1/R/R-34~1.1/bin/x64/R" --no-site-file --no-environ --no-save --no-restore --quiet CMD
running command 'make -f "C:/PROGRA~1/R/R-34~1.1/etc/x64/Makeconf" -f "C:/PROGRA~1/R/R-34~1.1/share/make/winshlib.mk" SHLIB="foo.dll" WIN=64 TCLBIN=64 OBJECTS="foo.o"' had status 127
Error: Command failed (1)
Any help would be appreciated.