I have been trying to tackle this problem for quite some time now, and it seems like I just can't. After loading some packages I try to source a C++ file, and this is what happens:
sourceCpp("Desktop/studie/master/Scriptie/R files/simulExpRcpp.cpp");
Error in sourceCpp("Desktop/studie/master/Scriptie/R files/simulExpRcpp.cpp") :
Error 1 occurred building shared library.
WARNING: The tools required to build C++ code for R were not found.
Please install Command Line Tools for XCode (or equivalent).
ld: warning: directory not found for option '-L/usr/local/lib/gcc/x86_64-apple-darwin13.0.0/4.8.2'
I have installed gfortran as indicated here, and double checked whether I correctly installed CommandLineTools. Also, my system runs on OS X Mavericks 10.9.5.
I assume the problem has something to do with the library, for which some possible solutions are given here. However, as I am quite new to R, I do not really get all the subtleties yet and the solutions are somewhat abracadabra to me.
Is there someone who can explain to me very carefully what I can do to resolve the problem? Thanks in advance for the help!