findR.cmake should really use the R_HOME to find R-related stuff and that variable should be passed on to cmake via a -D option. The original version tries to find the R executable using findProgram which will not locate R if it is installed in a non-standard location, not on default path.