Thank you for the reply! Something is still wrong. I have run through a number of threads and nothing has worked as of yet. Here are a few things I have tried to better understand the problem:
pkgbuild::with_build_tools(print(“hello”), debug = TRUE)
Error: Could not find tools necessary to compile a package
Call pkgbuild::check_build_tools(debug = TRUE) to diagnose the problem.
> pkgbuild::check_build_tools(debug = TRUE)
Error: Could not find tools necessary to compile a package
Call `pkgbuild::check_build_tools(debug = TRUE)` to diagnose the problem.
> pkgbuild::rtools_path()
[1] "C:/RBuildTools/3.5/bin"
> Sys.which("ls.exe")
ls.exe
""
> Sys.which("gcc.exe")
gcc.exe
""
It seems that you are using R 3.6.3 but trying to use the build tools under C:/RBuildTools/3.5 . I would uninstall the 3.5 stuff if you are not using it.
Are you suggesting that I install an older version of build tools? I tried that and am still not successful. Again, I appreciate your help. This is a fantastic community
It is possible that you have already uninstalled R 3.5.x, in which case you just need to uninstall RBuildTools. It will get reinstalled for 3.6 when you do pkgbuild::has_build_tools(TRUE) from R 3.6.x.
No dice. I uninstalled R, RStudio, all of my packages, Rtools, and removed all of the R related Path variables.
I then installed R, Rstudio, RStan, and Rtools.
I ran pkgbuild::has_build_tools(debug = TRUE) and I still get the pop-up to install Rtools.
and
[1] FALSE
Error in compileCode(f, code, language = language, verbose = verbose) :
Compilation ERROR, function(s)/method(s) not created! file366c67595a4f.cpp:6:36: warning: ISO C99 requires whitespace after the macro name
#define STAN__SERVICES__COMMAND_HPP#include <boost/integer/integer_log2.hpp>