anchor.diff:  REM to compare sorted files. Probably just placing Rtools first
   REM on the PATH is sufficient, but this is fine too.
   SET "PATH=C:\Rtools\bin"
  -make clean
  -
  -REM We need to build all of the R library DLLs first, and then
  -REM copy them to locations where R will find them. Not sure why
  -REM this step is necessary.
  -make rlibs
  -cp ..\extra\graphapp\Rgraphapp.dll Rgraphapp.dll
  -cp ..\extra\win_iconv\Riconv.dll Riconv.dll
  +make distclean
   
   REM Now we should be able to build R + recommended packages.
  -make all recommended
  +make WIN=%WIN% all recommended
   
   REM Clean up.
   SET "PATH=%OLDPATH%"
  +cd %OLDDIR%
  
positive.code: move mingw64 %RTOOLS_DIR%\gcc492_64
  
  REM Download the R sources. Get the latest R-devel sources using SVN.
  REM
  REM If you need a Windows SVN client, you can download SlikSVN here:
  REM
  REM     https://sliksvn.com/download/
  REM
  REM Be sure to place the installed binary directory on your PATH.
  svn checkout https://svn.r-project.org/R/trunk/
  cd trunk
  
  REM Copy in the 'extras' for a 64bit build. This includes tcltk
  REM plus some other libraries. Note that the R64 directory should
  REM have been populated by the RTools installation.
  xcopy /E /Y C:\R %R_HOME%\trunk\
  REM xcopy /E /Y C:\R64 %R_HOME%\trunk\
  
  REM Ensure the temporary directory exists.
  if not exist "%TMPDIR%" (
  
negative.code: REM This script installs R-devel from SVN trunk on Windows.
  REM
  REM This script assumes you have 'wget' on your path, as it
  REM is used to download. You can find a binary here:
  REM
  REM     https://eternallybored.org/misc/wget/wget64.exe 
  REM
  REM We use SVN to checkout R trunk from SVN.
  REM If you need a Windows SVN client, you can download SlikSVN here:
  REM
  REM     https://sliksvn.com/download/
  REM
  REM Be sure to place the installed binary directory on your PATH.
  REM
  REM If you modify the configuration below, be sure to use
  REM a directory _within the %USERPROFILE%; ie, your user
  REM directory; otherwise you will almost certainly run into
  REM very bizarre permission issues on build.
  
  REM ---------------------------------
  REM - BEGIN CONFIGURATION VARIABLES -
  REM ---------------------------------
  
  REM Set to 32 for a 32bit build.
  REM TODO Build both in one go.
  SET "WIN=64"
  
  IF NOT DEFINED WGET (
  	where /q wget && (
  		SET "WGET=wget"
  	) || (
  		where /q wget && (
  			SET "WGET=wget64"
  		)
  	)
  )
  
  IF NOT DEFINED SVN (
  