I am trying to install GGIR package in RStudio 2021.09.0+351. I get the following error message:
In file included from C:/RBuildTools/3.5/mingw_32/i686-w64-mingw32/include/c++/cfenv:35:0,
from resample.cpp:3:
C:/RBuildTools/3.5/mingw_32/i686-w64-mingw32/include/c++/bits/c++0x_warning.h:32:2: error: #error This file requires compiler and library support for the ISO C++ 2011 standard. This support is currently experimental, and must be enabled with the -std=c++11 or -std=gnu++11 compiler options.
#error This file requires compiler and library support for the \
^
make: *** [C:/PROGRA~1/R/R-36~1.0/etc/i386/Makeconf:215: resample.o] Error 1
ERROR: compilation failed for package 'GGIR'
* removing 'C:/Users/arkia/OneDrive/Asiakirjat/R/win-library/3.6/GGIR'
Warning in install.packages :
installation of package ‘GGIR’ had non-zero exit status
I have done extensive searching and I understand that I should make edits to a Makevars file. The problems is that I do not know where this file should be or where I should add it and with what contents. If I search 'Makevars' file in my computer I see 2 files located in the RcppEigen and RcppArmadillo folders.
Many sites say that Makevars should be located at ~/.R/Makevars
. Again I do not know where that should be. Thanks!