Error in compileCode(f, code, language = language, verbose = verbose) : Compilation ERROR, function(s)/method(s) not created!

Hi. Not sure whether it is acceptable to use this thread but I am experiencing issues compiling Stan models. I installed RStan without any issues.
Win 10, 64 bit, R 3.6.2, Rtools 3.5.0.4
However, when I try to run the following command:
example(stan_model, run.dontrun = TRUE)
I get the following errors:

g++.exe: error: Files/R/R-3.6.2/library/StanHeaders/include/stan/math/prim/mat/fun/Eigen.hpp: No such file or directory
g++.exe: error: Files/R/R-3.6.2/library/StanHeaders/include: No such file or directory
g++.exe: error: Files/R/R-3.6.2/library/RcppEigen/include: No such file or directory

The “compilation argument” is as follows:

C:/PROGRA~1/R/R-36~1.2/bin/x64/R CMD SHLIB file355079371150.cpp 2> file355079371150.cpp.err.txt
C:/Rtools/mingw_64/bin/g++ -std=gnu++11 -I"C:/PROGRA~1/R/R-36~1.2/include" -DNDEBUG -I"C:/Program Files/R/R-3.6.2/library/Rcpp/include/" -I"C:/Program Files/R/R-3.6.2/library/RcppEigen/include/" -I"C:/Program Files/R/R-3.6.2/library/RcppEigen/include/unsupported" -I"C:/Program Files/R/R-3.6.2/library/BH/include" -I"C:/Program Files/R/R-3.6.2/library/StanHeaders/include/src/" -I"C:/Program Files/R/R-3.6.2/library/StanHeaders/include/" -I"C:/Program Files/R/R-3.6.2/library/rstan/include" -DEIGEN_NO_DEBUG -DBOOST_DISABLE_ASSERTS -std=c++1y -march=core2 -include C:/Program Files/R/R-3.6.2/library/StanHeaders/include/stan/math/prim/mat/fun/Eigen.hpp -I C:/Program Files/R/R-3.6.2/library/StanHeaders/include -I C:/Program Files/R/R-3.6.2/library/RcppEigen/include -O3 -march=corei7 -mtune=corei7 -c file355079371150.cpp -o file355079371150.o

I noticed that the files or directories that cannot be found happen to be those that are not in quotes in the compilation argument, namely

-include C:/Program Files/R/R-3.6.2/library/StanHeaders/include/stan/math/prim/mat/fun/Eigen.hpp -I C:/Program Files/R/R-3.6.2/library/StanHeaders/include -I C:/Program Files/R/R-3.6.2/library/RcppEigen/include

and the errors complain that
Files/R/R-3.6.2/library/StanHeaders/include/stan/math/prim/mat/fun/Eigen.hpp
doesn’t exist, etc. The paths have been mangled.

Needless to say, these files and directories all exist on my machine.

Is there a way to force the paths to be properly quoted? And would that solve the problem?

Thank you for any help you may be to provide.