Hi, everyone
I was trying to figure out how to deal with utilizing DiD with ordinal dependent variable, and found useful article and package by Yamauchi Soichiro.
To install this package, I followed his instructions but failed to do so as below :
require("devtools")
install_github("soichiroy/orddid", dependencies=TRUE)
Downloading GitHub repo soichiroy/orddid@HEAD
✓ checking for file ‘/private/var/folders/4m/2zbc269x6nzc25smzn1lm45r0000gn/T/Rtmp5ivMnr/remotes583f76b8aee2/soichiroy-orddid-2da3212/DESCRIPTION’ ...
─ preparing ‘orddid’:
✓ checking DESCRIPTION meta-information ...
─ cleaning src
─ checking for LF line-endings in source and make files and shell scripts
─ checking for empty or unneeded directories
─ building ‘orddid_0.1.0.tar.gz’
* installing *source* package ‘orddid’ ...
** using staged installation
** libs
clang++ -I"/Library/Frameworks/R.framework/Resources/include" -DNDEBUG -I'/Library/Frameworks/R.framework/Versions/4.1/Resources/library/Rcpp/include' -I'/Library/Frameworks/R.framework/Versions/4.1/Resources/library/RcppArmadillo/include' -I/usr/local/include -fPIC -Wall -g -O2 -c RcppExports.cpp -o RcppExports.o
In file included from RcppExports.cpp:4:
In file included from /Library/Frameworks/R.framework/Versions/4.1/Resources/library/RcppArmadillo/include/RcppArmadillo.h:29:
In file included from /Library/Frameworks/R.framework/Versions/4.1/Resources/library/RcppArmadillo/include/RcppArmadilloForward.h:48:
In file included from /Library/Frameworks/R.framework/Versions/4.1/Resources/library/RcppArmadillo/include/armadillo:23:
/Library/Frameworks/R.framework/Versions/4.1/Resources/library/RcppArmadillo/include/armadillo_bits/compiler_check.hpp:72:4: error: "*** C++11 compiler required; enable C++11 mode in your compiler, or use an earlier version of Armadillo"
#error "*** C++11 compiler required; enable C++11 mode in your compiler, or use an earlier version of Armadillo"
^
In file included from RcppExports.cpp:4:
In file included from /Library/Frameworks/R.framework/Versions/4.1/Resources/library/RcppArmadillo/include/RcppArmadillo.h:29:
In file included from /Library/Frameworks/R.framework/Versions/4.1/Resources/library/RcppArmadillo/include/RcppArmadilloForward.h:48:
In file included from /Library/Frameworks/R.framework/Versions/4.1/Resources/library/RcppArmadillo/include/armadillo:87:
/Library/Frameworks/R.framework/Versions/4.1/Resources/library/RcppArmadillo/include/armadillo_bits/arma_forward.hpp:152:12: error: unknown type name 'constexpr'
static constexpr bool is_row = false;
^
/Library/Frameworks/R.framework/Versions/4.1/Resources/library/RcppArmadillo/include/armadillo_bits/arma_forward.hpp:153:12: error: unknown type name 'constexpr'
static constexpr bool is_col = false;
^
/Library/Frameworks/R.framework/Versions/4.1/Resources/library/RcppArmadillo/include/armadillo_bits/arma_forward.hpp:154:12: error: unknown type name 'constexpr'
static constexpr bool is_xvec = false;
^
/Library/Frameworks/R.framework/Versions/4.1/Resources/library/RcppArmadillo/include/armadillo_bits/arma_forward.hpp:164:12: error: unknown type name 'constexpr'
static constexpr bool is_row = false;
^
/Library/Frameworks/R.framework/Versions/4.1/Resources/library/RcppArmadillo/include/armadillo_bits/arma_forward.hpp:165:12: error: unknown type name 'constexpr'
static constexpr bool is_col = false;
^
/Library/Frameworks/R.framework/Versions/4.1/Resources/library/RcppArmadillo/include/armadillo_bits/arma_forward.hpp:166:12: error: unknown type name 'constexpr'
static constexpr bool is_xvec = true;
^
/Library/Frameworks/R.framework/Versions/4.1/Resources/library/RcppArmadillo/include/armadillo_bits/arma_forward.hpp:176:12: error: unknown type name 'constexpr'
static constexpr bool is_row = false;
^
/Library/Frameworks/R.framework/Versions/4.1/Resources/library/RcppArmadillo/include/armadillo_bits/arma_forward.hpp:177:12: error: unknown type name 'constexpr'
static constexpr bool is_col = true;
^
/Library/Frameworks/R.framework/Versions/4.1/Resources/library/RcppArmadillo/include/armadillo_bits/arma_forward.hpp:178:12: error: unknown type name 'constexpr'
static constexpr bool is_xvec = false;
^
/Library/Frameworks/R.framework/Versions/4.1/Resources/library/RcppArmadillo/include/armadillo_bits/arma_forward.hpp:188:12: error: unknown type name 'constexpr'
static constexpr bool is_row = true;
^
/Library/Frameworks/R.framework/Versions/4.1/Resources/library/RcppArmadillo/include/armadillo_bits/arma_forward.hpp:189:12: error: unknown type name 'constexpr'
static constexpr bool is_col = false;
^
/Library/Frameworks/R.framework/Versions/4.1/Resources/library/RcppArmadillo/include/armadillo_bits/arma_forward.hpp:190:12: error: unknown type name 'constexpr'
static constexpr bool is_xvec = false;
^
/Library/Frameworks/R.framework/Versions/4.1/Resources/library/RcppArmadillo/include/armadillo_bits/arma_forward.hpp:200:12: error: unknown type name 'constexpr'
static constexpr bool is_row = T1::is_row;
^
/Library/Frameworks/R.framework/Versions/4.1/Resources/library/RcppArmadillo/include/armadillo_bits/arma_forward.hpp:201:12: error: unknown type name 'constexpr'
static constexpr bool is_col = T1::is_col;
^
/Library/Frameworks/R.framework/Versions/4.1/Resources/library/RcppArmadillo/include/armadillo_bits/arma_forward.hpp:202:12: error: unknown type name 'constexpr'
static constexpr bool is_xvec = T1::is_xvec;
^
/Library/Frameworks/R.framework/Versions/4.1/Resources/library/RcppArmadillo/include/armadillo_bits/arma_forward.hpp:212:12: error: unknown type name 'constexpr'
static constexpr bool is_row = false;
^
/Library/Frameworks/R.framework/Versions/4.1/Resources/library/RcppArmadillo/include/armadillo_bits/arma_forward.hpp:213:12: error: unknown type name 'constexpr'
static constexpr bool is_col = false;
^
/Library/Frameworks/R.framework/Versions/4.1/Resources/library/RcppArmadillo/include/armadillo_bits/arma_forward.hpp:214:12: error: unknown type name 'constexpr'
static constexpr bool is_xvec = false;
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *** [RcppExports.o] Error 1
ERROR: compilation failed for package ‘orddid’
* removing ‘/Library/Frameworks/R.framework/Versions/4.1/Resources/library/orddid’
Warning message:
In i.p(...) :
installation of package ‘/var/folders/4m/2zbc269x6nzc25smzn1lm45r0000gn/T//Rtmp5ivMnr/file583f56e1b452/orddid_0.1.0.tar.gz’ had non-zero exit status
Can anyone help the R beginner without difficult vocabs?