I am building a package for R in c++. How can I include libraries in the code?. For example, if I use #include <vector> vector, R check fails with error
> fatal error: vector: No such file or directory
> E> #include <vector>
> E> ^~~~~~~~
> E> compilation terminated.
I have tried using LinkingTo: vector in the DESCRIPTION file, as described in another answer, but it does not work.