I am trying to install RcppRoll from source using _installgithub("kevinushey/RcppRoll") but i am getting the following error (which I couldn't decipher); and i was wondering if you knew the cause/reason?
Thanks
---------------------- error output below this line---------------
Installing github repo RcppRoll/master from kevinushey
Downloading master.zip from https://github.com/kevinushey/RcppRoll/archive/master.zip
Installing package from /var/folders/jc/md64bd2x7nq0_j5ppqp89k_00000gn/T//Rtmp6Mmi9i/master.zip
arguments 'minimized' and 'invisible' are for Windows only
Installing RcppRoll
'/Library/Frameworks/R.framework/Resources/bin/R' --vanilla CMD INSTALL \
'/private/var/folders/jc/md64bd2x7nq0_j5ppqp89k_00000gn/T/Rtmp6Mmi9i/devtools4b25b9accdc/RcppRoll-master' \
--library='/Users/ahmednagi/Documents/R_WorkSpaces/Rpackages' --install-tests
* installing source package 'RcppRoll' ...
\ libs
g++ -arch x86_64 -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I/usr/local/include -I"/Users/ahmednagi/Documents/R_WorkSpaces/Rpackages/Rcpp/include" -I"/Users/ahmednagi/Documents/R_WorkSpaces/Rpackages/RcppArmadillo/include" -fPIC -mtune=core2 -g -O2 -c RcppExports.cpp -o RcppExports.o
g++ -arch x86_64 -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I/usr/local/include -I"/Users/ahmednagi/Documents/R_WorkSpaces/Rpackages/Rcpp/include" -I"/Users/ahmednagi/Documents/R_WorkSpaces/Rpackages/RcppArmadillo/include" -fPIC -mtune=core2 -g -O2 -c rollit.cpp -o rollit.o
rollit.cpp:245:14: error: no member named 'isnan' in the global namespace; did you mean 'is_nan'?
if (!::isnan(x[offset + i])) {
^~~
is_nan
/Users/ahmednagi/Documents/R_WorkSpaces/Rpackages/Rcpp/include/Rcpp/sugar/functions/is_nan.h:49:33: note: 'is_nan' declared here
inline sugar::IsNaN<RTYPE,NA,T> is_nan( const Rcpp::VectorBase<RTYPE,NA,T>& t){
^
rollit.cpp:245:12: error: no matching function for call to 'is_nan'
if (!::isnan(x[offset + i])) {
^~~
/Users/ahmednagi/Documents/R_WorkSpaces/Rpackages/Rcpp/include/Rcpp/sugar/functions/is_nan.h:49:33: note: candidate template ignored: could not match 'VectorBase<RTYPE, na, type-parameter-0-2>' against 'const double'
inline sugar::IsNaN<RTYPE,NA,T> is_nan( const Rcpp::VectorBase<RTYPE,NA,T>& t){
^
rollit.cpp:260:14: error: no member named 'isnan' in the global namespace; did you mean 'is_nan'?
if (!::isnan(x[offset + i])) {
^~~
is_nan
/Users/ahmednagi/Documents/R_WorkSpaces/Rpackages/Rcpp/include/Rcpp/sugar/functions/is_nan.h:49:33: note: 'is_nan' declared here
inline sugar::IsNaN<RTYPE,NA,T> is_nan( const Rcpp::VectorBase<RTYPE,NA,T>& t){
^
rollit.cpp:260:12: error: no matching function for call to 'is_nan'
if (!::isnan(x[offset + i])) {
^~~
/Users/ahmednagi/Documents/R_WorkSpaces/Rpackages/Rcpp/include/Rcpp/sugar/functions/is_nan.h:49:33: note: candidate template ignored: could not match 'VectorBase<RTYPE, na, type-parameter-0-2>' against 'const double'
inline sugar::IsNaN<RTYPE,NA,T> is_nan( const Rcpp::VectorBase<RTYPE,NA,T>& t){
^
rollit.cpp:324:14: error: no member named 'isnan' in the global namespace; did you mean 'is_nan'?
if (!::isnan(x[offset + i])) {
^~~
is_nan
/Users/ahmednagi/Documents/R_WorkSpaces/Rpackages/Rcpp/include/Rcpp/sugar/functions/is_nan.h:49:33: note: 'is_nan' declared here
inline sugar::IsNaN<RTYPE,NA,T> is_nan( const Rcpp::VectorBase<RTYPE,NA,T>& t){
^
rollit.cpp:324:12: error: no matching function for call to 'is_nan'
if (!::isnan(x[offset + i])) {
^~~
/Users/ahmednagi/Documents/R_WorkSpaces/Rpackages/Rcpp/include/Rcpp/sugar/functions/is_nan.h:49:33: note: candidate template ignored: could not match 'VectorBase<RTYPE, na, type-parameter-0-2>' against 'const double'
inline sugar::IsNaN<RTYPE,NA,T> is_nan( const Rcpp::VectorBase<RTYPE,NA,T>& t){
^
rollit.cpp:337:14: error: no member named 'isnan' in the global namespace; did you mean 'is_nan'?
if (!::isnan(x[offset + i])) {
^~~
is_nan
/Users/ahmednagi/Documents/R_WorkSpaces/Rpackages/Rcpp/include/Rcpp/sugar/functions/is_nan.h:49:33: note: 'is_nan' declared here
inline sugar::IsNaN<RTYPE,NA,T> is_nan( const Rcpp::VectorBase<RTYPE,NA,T>& t){
^
rollit.cpp:337:12: error: no matching function for call to 'is_nan'
if (!::isnan(x[offset + i])) {
^~~
/Users/ahmednagi/Documents/R_WorkSpaces/Rpackages/Rcpp/include/Rcpp/sugar/functions/is_nan.h:49:33: note: candidate template ignored: could not match 'VectorBase<RTYPE, na, type-parameter-0-2>' against 'const double'
inline sugar::IsNaN<RTYPE,NA,T> is_nan( const Rcpp::VectorBase<RTYPE,NA,T>& t){
^
rollit.cpp:357:13: error: no member named 'isnan' in the global namespace; did you mean 'is_nan'?
if (::isnan(x[offset + i])) {
^~~
is_nan
/Users/ahmednagi/Documents/R_WorkSpaces/Rpackages/Rcpp/include/Rcpp/sugar/functions/is_nan.h:49:33: note: 'is_nan' declared here
inline sugar::IsNaN<RTYPE,NA,T> is_nan( const Rcpp::VectorBase<RTYPE,NA,T>& t){
^
rollit.cpp:357:11: error: no matching function for call to 'is_nan'
if (::isnan(x[offset + i])) {
^~~
/Users/ahmednagi/Documents/R_WorkSpaces/Rpackages/Rcpp/include/Rcpp/sugar/functions/is_nan.h:49:33: note: candidate template ignored: could not match 'VectorBase<RTYPE, na, type-parameter-0-2>' against 'const double'
inline sugar::IsNaN<RTYPE,NA,T> is_nan( const Rcpp::VectorBase<RTYPE,NA,T>& t){
^
rollit.cpp:371:13: error: no member named 'isnan' in the global namespace; did you mean 'is_nan'?
if (::isnan(x[offset + i])) {
^~~
is_nan
/Users/ahmednagi/Documents/R_WorkSpaces/Rpackages/Rcpp/include/Rcpp/sugar/functions/is_nan.h:49:33: note: 'is_nan' declared here
inline sugar::IsNaN<RTYPE,NA,T> is_nan( const Rcpp::VectorBase<RTYPE,NA,T>& t){
^
rollit.cpp:371:11: error: no matching function for call to 'is_nan'
if (::isnan(x[offset + i])) {
^~~
/Users/ahmednagi/Documents/R_WorkSpaces/Rpackages/Rcpp/include/Rcpp/sugar/functions/is_nan.h:49:33: note: candidate template ignored: could not match 'VectorBase<RTYPE, na, type-parameter-0-2>' against 'const double'
inline sugar::IsNaN<RTYPE,NA,T> is_nan( const Rcpp::VectorBase<RTYPE,NA,T>& t){
^
rollit.cpp:422:13: error: no member named 'isnan' in the global namespace; did you mean 'is_nan'?
if (::isnan(x[offset + i])) {
^~~
is_nan
/Users/ahmednagi/Documents/R_WorkSpaces/Rpackages/Rcpp/include/Rcpp/sugar/functions/is_nan.h:49:33: note: 'is_nan' declared here
inline sugar::IsNaN<RTYPE,NA,T> is_nan( const Rcpp::VectorBase<RTYPE,NA,T>& t){
^
rollit.cpp:422:11: error: no matching function for call to 'is_nan'
if (::isnan(x[offset + i])) {
^~~
/Users/ahmednagi/Documents/R_WorkSpaces/Rpackages/Rcpp/include/Rcpp/sugar/functions/is_nan.h:49:33: note: candidate template ignored: could not match 'VectorBase<RTYPE, na, type-parameter-0-2>' against 'const double'
inline sugar::IsNaN<RTYPE,NA,T> is_nan( const Rcpp::VectorBase<RTYPE,NA,T>& t){
^
rollit.cpp:437:13: error: no member named 'isnan' in the global namespace; did you mean 'is_nan'?
if (::isnan(x[offset + i])) {
^~~
is_nan
/Users/ahmednagi/Documents/R_WorkSpaces/Rpackages/Rcpp/include/Rcpp/sugar/functions/is_nan.h:49:33: note: 'is_nan' declared here
inline sugar::IsNaN<RTYPE,NA,T> is_nan( const Rcpp::VectorBase<RTYPE,NA,T>& t){
^
rollit.cpp:437:11: error: no matching function for call to 'is_nan'
if (::isnan(x[offset + i])) {
^~~
/Users/ahmednagi/Documents/R_WorkSpaces/Rpackages/Rcpp/include/Rcpp/sugar/functions/is_nan.h:49:33: note: candidate template ignored: could not match 'VectorBase<RTYPE, na, type-parameter-0-2>' against 'const double'
inline sugar::IsNaN<RTYPE,NA,T> is_nan( const Rcpp::VectorBase<RTYPE,NA,T>& t){
^
rollit.cpp:455:13: error: no member named 'isnan' in the global namespace; did you mean 'is_nan'?
if (::isnan(x[offset + i])) continue;
^~~
is_nan
/Users/ahmednagi/Documents/R_WorkSpaces/Rpackages/Rcpp/include/Rcpp/sugar/functions/is_nan.h:49:33: note: 'is_nan' declared here
inline sugar::IsNaN<RTYPE,NA,T> is_nan( const Rcpp::VectorBase<RTYPE,NA,T>& t){
^
rollit.cpp:455:11: error: no matching function for call to 'is_nan'
if (::isnan(x[offset + i])) continue;
^~~
/Users/ahmednagi/Documents/R_WorkSpaces/Rpackages/Rcpp/include/Rcpp/sugar/functions/is_nan.h:49:33: note: candidate template ignored: could not match 'VectorBase<RTYPE, na, type-parameter-0-2>' against 'const double'
inline sugar::IsNaN<RTYPE,NA,T> is_nan( const Rcpp::VectorBase<RTYPE,NA,T>& t){
^
rollit.cpp:468:13: error: no member named 'isnan' in the global namespace; did you mean 'is_nan'?
if (::isnan(x[offset + i])) continue;
^~~
is_nan
/Users/ahmednagi/Documents/R_WorkSpaces/Rpackages/Rcpp/include/Rcpp/sugar/functions/is_nan.h:49:33: note: 'is_nan' declared here
inline sugar::IsNaN<RTYPE,NA,T> is_nan( const Rcpp::VectorBase<RTYPE,NA,T>& t){
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
make: *\ [rollit.o] Error 1
ERROR: compilation failed for package 'RcppRoll'
Hello Kevin..
I am trying to install RcppRoll from source using _installgithub("kevinushey/RcppRoll") but i am getting the following error (which I couldn't decipher); and i was wondering if you knew the cause/reason?
Thanks
---------------------- error output below this line---------------
Installing github repo RcppRoll/master from kevinushey Downloading master.zip from https://github.com/kevinushey/RcppRoll/archive/master.zip Installing package from /var/folders/jc/md64bd2x7nq0_j5ppqp89k_00000gn/T//Rtmp6Mmi9i/master.zip arguments 'minimized' and 'invisible' are for Windows only Installing RcppRoll '/Library/Frameworks/R.framework/Resources/bin/R' --vanilla CMD INSTALL \ '/private/var/folders/jc/md64bd2x7nq0_j5ppqp89k_00000gn/T/Rtmp6Mmi9i/devtools4b25b9accdc/RcppRoll-master' \ --library='/Users/ahmednagi/Documents/R_WorkSpaces/Rpackages' --install-tests
* installing source package 'RcppRoll' ... \ libs g++ -arch x86_64 -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I/usr/local/include -I"/Users/ahmednagi/Documents/R_WorkSpaces/Rpackages/Rcpp/include" -I"/Users/ahmednagi/Documents/R_WorkSpaces/Rpackages/RcppArmadillo/include" -fPIC -mtune=core2 -g -O2 -c RcppExports.cpp -o RcppExports.o g++ -arch x86_64 -I/Library/Frameworks/R.framework/Resources/include -DNDEBUG -I/usr/local/include -I"/Users/ahmednagi/Documents/R_WorkSpaces/Rpackages/Rcpp/include" -I"/Users/ahmednagi/Documents/R_WorkSpaces/Rpackages/RcppArmadillo/include" -fPIC -mtune=core2 -g -O2 -c rollit.cpp -o rollit.o rollit.cpp:245:14: error: no member named 'isnan' in the global namespace; did you mean 'is_nan'? if (!::isnan(x[offset + i])) {
^~~ is_nan /Users/ahmednagi/Documents/R_WorkSpaces/Rpackages/Rcpp/include/Rcpp/sugar/functions/is_nan.h:49:33: note: 'is_nan' declared here inline sugar::IsNaN<RTYPE,NA,T> is_nan( const Rcpp::VectorBase<RTYPE,NA,T>& t){ ^ rollit.cpp:245:12: error: no matching function for call to 'is_nan' if (!::isnan(x[offset + i])) { ^~~ /Users/ahmednagi/Documents/R_WorkSpaces/Rpackages/Rcpp/include/Rcpp/sugar/functions/is_nan.h:49:33: note: candidate template ignored: could not match 'VectorBase<RTYPE, na, type-parameter-0-2>' against 'const double' inline sugar::IsNaN<RTYPE,NA,T> is_nan( const Rcpp::VectorBase<RTYPE,NA,T>& t){ ^ rollit.cpp:260:14: error: no member named 'isnan' in the global namespace; did you mean 'is_nan'? if (!::isnan(x[offset + i])) {^~~ is_nan /Users/ahmednagi/Documents/R_WorkSpaces/Rpackages/Rcpp/include/Rcpp/sugar/functions/is_nan.h:49:33: note: 'is_nan' declared here inline sugar::IsNaN<RTYPE,NA,T> is_nan( const Rcpp::VectorBase<RTYPE,NA,T>& t){ ^ rollit.cpp:260:12: error: no matching function for call to 'is_nan' if (!::isnan(x[offset + i])) { ^~~ /Users/ahmednagi/Documents/R_WorkSpaces/Rpackages/Rcpp/include/Rcpp/sugar/functions/is_nan.h:49:33: note: candidate template ignored: could not match 'VectorBase<RTYPE, na, type-parameter-0-2>' against 'const double' inline sugar::IsNaN<RTYPE,NA,T> is_nan( const Rcpp::VectorBase<RTYPE,NA,T>& t){ ^ rollit.cpp:324:14: error: no member named 'isnan' in the global namespace; did you mean 'is_nan'? if (!::isnan(x[offset + i])) {^~~ is_nan /Users/ahmednagi/Documents/R_WorkSpaces/Rpackages/Rcpp/include/Rcpp/sugar/functions/is_nan.h:49:33: note: 'is_nan' declared here inline sugar::IsNaN<RTYPE,NA,T> is_nan( const Rcpp::VectorBase<RTYPE,NA,T>& t){ ^ rollit.cpp:324:12: error: no matching function for call to 'is_nan' if (!::isnan(x[offset + i])) { ^~~ /Users/ahmednagi/Documents/R_WorkSpaces/Rpackages/Rcpp/include/Rcpp/sugar/functions/is_nan.h:49:33: note: candidate template ignored: could not match 'VectorBase<RTYPE, na, type-parameter-0-2>' against 'const double' inline sugar::IsNaN<RTYPE,NA,T> is_nan( const Rcpp::VectorBase<RTYPE,NA,T>& t){ ^ rollit.cpp:337:14: error: no member named 'isnan' in the global namespace; did you mean 'is_nan'? if (!::isnan(x[offset + i])) {^~~ is_nan /Users/ahmednagi/Documents/R_WorkSpaces/Rpackages/Rcpp/include/Rcpp/sugar/functions/is_nan.h:49:33: note: 'is_nan' declared here inline sugar::IsNaN<RTYPE,NA,T> is_nan( const Rcpp::VectorBase<RTYPE,NA,T>& t){ ^ rollit.cpp:337:12: error: no matching function for call to 'is_nan' if (!::isnan(x[offset + i])) { ^~~ /Users/ahmednagi/Documents/R_WorkSpaces/Rpackages/Rcpp/include/Rcpp/sugar/functions/is_nan.h:49:33: note: candidate template ignored: could not match 'VectorBase<RTYPE, na, type-parameter-0-2>' against 'const double' inline sugar::IsNaN<RTYPE,NA,T> is_nan( const Rcpp::VectorBase<RTYPE,NA,T>& t){ ^ rollit.cpp:357:13: error: no member named 'isnan' in the global namespace; did you mean 'is_nan'? if (::isnan(x[offset + i])) {^~~ is_nan /Users/ahmednagi/Documents/R_WorkSpaces/Rpackages/Rcpp/include/Rcpp/sugar/functions/is_nan.h:49:33: note: 'is_nan' declared here inline sugar::IsNaN<RTYPE,NA,T> is_nan( const Rcpp::VectorBase<RTYPE,NA,T>& t){ ^ rollit.cpp:357:11: error: no matching function for call to 'is_nan' if (::isnan(x[offset + i])) { ^~~ /Users/ahmednagi/Documents/R_WorkSpaces/Rpackages/Rcpp/include/Rcpp/sugar/functions/is_nan.h:49:33: note: candidate template ignored: could not match 'VectorBase<RTYPE, na, type-parameter-0-2>' against 'const double' inline sugar::IsNaN<RTYPE,NA,T> is_nan( const Rcpp::VectorBase<RTYPE,NA,T>& t){ ^ rollit.cpp:371:13: error: no member named 'isnan' in the global namespace; did you mean 'is_nan'? if (::isnan(x[offset + i])) {^~~ is_nan /Users/ahmednagi/Documents/R_WorkSpaces/Rpackages/Rcpp/include/Rcpp/sugar/functions/is_nan.h:49:33: note: 'is_nan' declared here inline sugar::IsNaN<RTYPE,NA,T> is_nan( const Rcpp::VectorBase<RTYPE,NA,T>& t){ ^ rollit.cpp:371:11: error: no matching function for call to 'is_nan' if (::isnan(x[offset + i])) { ^~~ /Users/ahmednagi/Documents/R_WorkSpaces/Rpackages/Rcpp/include/Rcpp/sugar/functions/is_nan.h:49:33: note: candidate template ignored: could not match 'VectorBase<RTYPE, na, type-parameter-0-2>' against 'const double' inline sugar::IsNaN<RTYPE,NA,T> is_nan( const Rcpp::VectorBase<RTYPE,NA,T>& t){ ^ rollit.cpp:422:13: error: no member named 'isnan' in the global namespace; did you mean 'is_nan'? if (::isnan(x[offset + i])) {^~~ is_nan /Users/ahmednagi/Documents/R_WorkSpaces/Rpackages/Rcpp/include/Rcpp/sugar/functions/is_nan.h:49:33: note: 'is_nan' declared here inline sugar::IsNaN<RTYPE,NA,T> is_nan( const Rcpp::VectorBase<RTYPE,NA,T>& t){ ^ rollit.cpp:422:11: error: no matching function for call to 'is_nan' if (::isnan(x[offset + i])) { ^~~ /Users/ahmednagi/Documents/R_WorkSpaces/Rpackages/Rcpp/include/Rcpp/sugar/functions/is_nan.h:49:33: note: candidate template ignored: could not match 'VectorBase<RTYPE, na, type-parameter-0-2>' against 'const double' inline sugar::IsNaN<RTYPE,NA,T> is_nan( const Rcpp::VectorBase<RTYPE,NA,T>& t){ ^ rollit.cpp:437:13: error: no member named 'isnan' in the global namespace; did you mean 'is_nan'? if (::isnan(x[offset + i])) {^~~ is_nan /Users/ahmednagi/Documents/R_WorkSpaces/Rpackages/Rcpp/include/Rcpp/sugar/functions/is_nan.h:49:33: note: 'is_nan' declared here inline sugar::IsNaN<RTYPE,NA,T> is_nan( const Rcpp::VectorBase<RTYPE,NA,T>& t){ ^ rollit.cpp:437:11: error: no matching function for call to 'is_nan' if (::isnan(x[offset + i])) { ^~~ /Users/ahmednagi/Documents/R_WorkSpaces/Rpackages/Rcpp/include/Rcpp/sugar/functions/is_nan.h:49:33: note: candidate template ignored: could not match 'VectorBase<RTYPE, na, type-parameter-0-2>' against 'const double' inline sugar::IsNaN<RTYPE,NA,T> is_nan( const Rcpp::VectorBase<RTYPE,NA,T>& t){ ^ rollit.cpp:455:13: error: no member named 'isnan' in the global namespace; did you mean 'is_nan'? if (::isnan(x[offset + i])) continue;^~~ is_nan /Users/ahmednagi/Documents/R_WorkSpaces/Rpackages/Rcpp/include/Rcpp/sugar/functions/is_nan.h:49:33: note: 'is_nan' declared here inline sugar::IsNaN<RTYPE,NA,T> is_nan( const Rcpp::VectorBase<RTYPE,NA,T>& t){ ^ rollit.cpp:455:11: error: no matching function for call to 'is_nan' if (::isnan(x[offset + i])) continue; ^~~ /Users/ahmednagi/Documents/R_WorkSpaces/Rpackages/Rcpp/include/Rcpp/sugar/functions/is_nan.h:49:33: note: candidate template ignored: could not match 'VectorBase<RTYPE, na, type-parameter-0-2>' against 'const double' inline sugar::IsNaN<RTYPE,NA,T> is_nan( const Rcpp::VectorBase<RTYPE,NA,T>& t){ ^ rollit.cpp:468:13: error: no member named 'isnan' in the global namespace; did you mean 'is_nan'? if (::isnan(x[offset + i])) continue;^~~ is_nan /Users/ahmednagi/Documents/R_WorkSpaces/Rpackages/Rcpp/include/Rcpp/sugar/functions/is_nan.h:49:33: note: 'is_nan' declared here inline sugar::IsNaN<RTYPE,NA,T> is_nan( const Rcpp::VectorBase<RTYPE,NA,T>& t){ ^ fatal error: too many errors emitted, stopping now [-ferror-limit=] 20 errors generated. make: *\ [rollit.o] Error 1 ERROR: compilation failed for package 'RcppRoll'