Thank you so much for such a fast response!!!
I tried to remove everything and reinstall it. Now it works on my Mac for the 8school example from
However, when I tried to use a windows to run the same example code, it shows the following error:
Error in compileCode(f, code, language = language, verbose = verbose) :
Compilation ERROR, function(s)/method(s) not created! sh: g++: command not found
make: *** [C:/PROGRA~1/R/R-36~1.0/etc/x64/Makeconf:215: file27b02dba6f84.o] Error 127
In addition: Warning message:
In system(cmd, intern = !verbose) :
running command ‘C:/PROGRA~1/R/R-36~1.0/bin/x64/R CMD SHLIB file27b02dba6f84.cpp 2> file27b02dba6f84.cpp.err.txt’ had status 1
Error in sink(type = “output”) : invalid connection
What should I do with the windows R? Thanks in advance!