Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lets try auto generated .R and .cpp files #9

Merged
merged 16 commits into from Jul 22, 2020

Conversation

Yashwants19
Copy link
Owner

Hi @eddelbuettel @coatless @rcurtin, In this PR I have copy-paste the folder(build/src/mlpack/bindings/R/mlpack) generated by cmake in main(mlpack) repository with some small changes(Rename mlpack ---> RcppMLPACK and increase time of travis build) in it.
Currently I am facing some problem in windows build.

cc1plus.exe: out of memory allocating 33554372 bytes
make: *** [C:/R/etc/i386/Makeconf:229: cf.o] Error 1
ERROR: compilation failed for package 'RcppMLPACK'

@eddelbuettel
Copy link
Collaborator

am facing some problem in windows build

For what it is worth, and as a general rule, I don't bother with either Windows or macOS at Travis.

I also had some serious issues with timeouts for one large (and very C++-heavy with "expensive" C++) project where I ... eventually gave up, switched to a solution where I supply my own Docker container and use ccache to at least safe time on the second build. (R CMD check effectively does two.)

If macOS and Windows are enormous pain (and I saw your Travis build times on the weekend) I would not be opposed to skipping them for now to allow general progress. Now @rcurtin and @coatless may feel different about this but IIRC they are also both card carrying members of the "GitHub actions fixes everything" school I have not yet attended...

@rcurtin
Copy link
Collaborator

rcurtin commented Jul 4, 2020

I actually don't know much about Github Actions... someday I will have to learn though. :)

@Yashwants19 do you have a link to the build or anything? If you're building with multiple cores, you can probably use just 1 instead and it will help reduce RAM usage. But I am quite surprised that the R compilation is using so much RAM.

(update: oh... this is a PR not an issue. There is the build link... heh... let me take a look...)

@rcurtin
Copy link
Collaborator

rcurtin commented Jul 4, 2020

Hmm, I must not be looking in the right place though. The only error I see here is

* checking whether package 'RcppMLPACK' can be installed ... ERROR
Installation failed.
See 'C:/projects/rcppmlpack/RcppMLPACK.Rcheck/00install.out' for details.
* DONE

and not anything about a failed memory allocation.

@coatless
Copy link
Collaborator

coatless commented Jul 4, 2020

I actually don't know much about Github Actions... someday I will have to learn though. :)

Aye, I'm the only one that experiments with it since I lack a dedicated home server for running CRON jobs.

If macOS and Windows are enormous pain (and I saw your Travis build times on the weekend) I would not be opposed to skipping them for now to allow general progress.

I'm also not opposed to this.

At some point, we probably will need to clear it with CRAN on the amount of time required to build the package.

Hmm, I must not be looking in the right place though.

Need to download the failure.zip from:

https://ci.appveyor.com/project/Yashwants19/rcppmlpack/builds/33823899/artifacts

Full text:

00install.out from RcppMLPACK.Rcheck
* installing *source* package 'RcppMLPACK' ...
** using staged installation

   **********************************************
   WARNING: this package has a configure script
         It probably needs manual configuration
   **********************************************


** libs

*** arch - i386
"c:/rtools40/mingw32/bin/"g++  -std=gnu++11 -I"C:/R/include" -DNDEBUG  -I'C:/RLibrary/4.0/Rcpp/include' -I'C:/RLibrary/4.0/RcppArmadillo/include' -I'C:/RLibrary/4.0/BH/include' -I'C:/RLibrary/4.0/RcppEnsmallen/include'     -I. -fopenmp   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign -c RcppExports.cpp -o RcppExports.o
In file included from C:/RLibrary/4.0/BH/include/boost/scoped_ptr.hpp:13,
                 from C:/RLibrary/4.0/BH/include/boost/archive/detail/basic_iarchive.hpp:23,
                 from C:/RLibrary/4.0/BH/include/boost/serialization/map.hpp:24,
                 from ./mlpack/prereqs.hpp:91,
                 from ./mlpack/core/data/load.hpp:17,
                 from ./mlpack/core/data/load.cpp:12,
                 from ../inst/include/RcppMLPACK.h:50,
                 from RcppExports.cpp:4:
C:/RLibrary/4.0/BH/include/boost/smart_ptr/scoped_ptr.hpp:74:31: warning: 'template<class> class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
     explicit scoped_ptr( std::auto_ptr<T> p ) BOOST_SP_NOEXCEPT : px( p.release() )
                               ^~~~~~~~
In file included from C:/rtools40/mingw32/include/c++/8.3.0/bits/locale_conv.h:41,
                 from C:/rtools40/mingw32/include/c++/8.3.0/locale:43,
                 from C:/rtools40/mingw32/include/c++/8.3.0/iomanip:43,
                 from C:/RLibrary/4.0/Rcpp/include/RcppCommon.h:52,
                 from C:/RLibrary/4.0/Rcpp/include/Rcpp.h:27,
                 from ../inst/include/RcppMLPACK.h:29,
                 from RcppExports.cpp:4:
C:/rtools40/mingw32/include/c++/8.3.0/bits/unique_ptr.h:53:28: note: declared here
   template<typename> class auto_ptr;
                            ^~~~~~~~
In file included from C:/RLibrary/4.0/BH/include/boost/smart_ptr/shared_ptr.hpp:28,
                 from C:/RLibrary/4.0/BH/include/boost/archive/detail/helper_collection.hpp:27,
                 from C:/RLibrary/4.0/BH/include/boost/archive/detail/basic_iarchive.hpp:28,
                 from C:/RLibrary/4.0/BH/include/boost/serialization/map.hpp:24,
                 from ./mlpack/prereqs.hpp:91,
                 from ./mlpack/core/data/load.hpp:17,
                 from ./mlpack/core/data/load.cpp:12,
                 from ../inst/include/RcppMLPACK.h:50,
                 from RcppExports.cpp:4:
C:/RLibrary/4.0/BH/include/boost/smart_ptr/detail/shared_count.hpp:356:33: warning: 'template<class> class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
     explicit shared_count( std::auto_ptr<Y> & r ): pi_( new sp_counted_impl_p<Y>( r.get() ) )
                                 ^~~~~~~~
In file included from C:/rtools40/mingw32/include/c++/8.3.0/bits/locale_conv.h:41,
                 from C:/rtools40/mingw32/include/c++/8.3.0/locale:43,
                 from C:/rtools40/mingw32/include/c++/8.3.0/iomanip:43,
                 from C:/RLibrary/4.0/Rcpp/include/RcppCommon.h:52,
                 from C:/RLibrary/4.0/Rcpp/include/Rcpp.h:27,
                 from ../inst/include/RcppMLPACK.h:29,
                 from RcppExports.cpp:4:
C:/rtools40/mingw32/include/c++/8.3.0/bits/unique_ptr.h:53:28: note: declared here
   template<typename> class auto_ptr;
                            ^~~~~~~~
In file included from C:/RLibrary/4.0/BH/include/boost/archive/detail/helper_collection.hpp:27,
                 from C:/RLibrary/4.0/BH/include/boost/archive/detail/basic_iarchive.hpp:28,
                 from C:/RLibrary/4.0/BH/include/boost/serialization/map.hpp:24,
                 from ./mlpack/prereqs.hpp:91,
                 from ./mlpack/core/data/load.hpp:17,
                 from ./mlpack/core/data/load.cpp:12,
                 from ../inst/include/RcppMLPACK.h:50,
                 from RcppExports.cpp:4:
C:/RLibrary/4.0/BH/include/boost/smart_ptr/shared_ptr.hpp:256:65: warning: 'template<class> class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
 template< class T, class R > struct sp_enable_if_auto_ptr< std::auto_ptr< T >, R >
                                                                 ^~~~~~~~
In file included from C:/rtools40/mingw32/include/c++/8.3.0/bits/locale_conv.h:41,
                 from C:/rtools40/mingw32/include/c++/8.3.0/locale:43,
                 from C:/rtools40/mingw32/include/c++/8.3.0/iomanip:43,
                 from C:/RLibrary/4.0/Rcpp/include/RcppCommon.h:52,
                 from C:/RLibrary/4.0/Rcpp/include/Rcpp.h:27,
                 from ../inst/include/RcppMLPACK.h:29,
                 from RcppExports.cpp:4:
C:/rtools40/mingw32/include/c++/8.3.0/bits/unique_ptr.h:53:28: note: declared here
   template<typename> class auto_ptr;
                            ^~~~~~~~
In file included from C:/RLibrary/4.0/BH/include/boost/archive/detail/helper_collection.hpp:27,
                 from C:/RLibrary/4.0/BH/include/boost/archive/detail/basic_iarchive.hpp:28,
                 from C:/RLibrary/4.0/BH/include/boost/serialization/map.hpp:24,
                 from ./mlpack/prereqs.hpp:91,
                 from ./mlpack/core/data/load.hpp:17,
                 from ./mlpack/core/data/load.cpp:12,
                 from ../inst/include/RcppMLPACK.h:50,
                 from RcppExports.cpp:4:
C:/RLibrary/4.0/BH/include/boost/smart_ptr/shared_ptr.hpp:471:31: warning: 'template<class> class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
     explicit shared_ptr( std::auto_ptr<Y> & r ): px(r.get()), pn()
                               ^~~~~~~~
In file included from C:/rtools40/mingw32/include/c++/8.3.0/bits/locale_conv.h:41,
                 from C:/rtools40/mingw32/include/c++/8.3.0/locale:43,
                 from C:/rtools40/mingw32/include/c++/8.3.0/iomanip:43,
                 from C:/RLibrary/4.0/Rcpp/include/RcppCommon.h:52,
                 from C:/RLibrary/4.0/Rcpp/include/Rcpp.h:27,
                 from ../inst/include/RcppMLPACK.h:29,
                 from RcppExports.cpp:4:
C:/rtools40/mingw32/include/c++/8.3.0/bits/unique_ptr.h:53:28: note: declared here
   template<typename> class auto_ptr;
                            ^~~~~~~~
In file included from C:/RLibrary/4.0/BH/include/boost/archive/detail/helper_collection.hpp:27,
                 from C:/RLibrary/4.0/BH/include/boost/archive/detail/basic_iarchive.hpp:28,
                 from C:/RLibrary/4.0/BH/include/boost/serialization/map.hpp:24,
                 from ./mlpack/prereqs.hpp:91,
                 from ./mlpack/core/data/load.hpp:17,
                 from ./mlpack/core/data/load.cpp:12,
                 from ../inst/include/RcppMLPACK.h:50,
                 from RcppExports.cpp:4:
C:/RLibrary/4.0/BH/include/boost/smart_ptr/shared_ptr.hpp:484:22: warning: 'template<class> class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
     shared_ptr( std::auto_ptr<Y> && r ): px(r.get()), pn()
                      ^~~~~~~~
In file included from C:/rtools40/mingw32/include/c++/8.3.0/bits/locale_conv.h:41,
                 from C:/rtools40/mingw32/include/c++/8.3.0/locale:43,
                 from C:/rtools40/mingw32/include/c++/8.3.0/iomanip:43,
                 from C:/RLibrary/4.0/Rcpp/include/RcppCommon.h:52,
                 from C:/RLibrary/4.0/Rcpp/include/Rcpp.h:27,
                 from ../inst/include/RcppMLPACK.h:29,
                 from RcppExports.cpp:4:
C:/rtools40/mingw32/include/c++/8.3.0/bits/unique_ptr.h:53:28: note: declared here
   template<typename> class auto_ptr;
                            ^~~~~~~~
In file included from C:/RLibrary/4.0/BH/include/boost/archive/detail/helper_collection.hpp:27,
                 from C:/RLibrary/4.0/BH/include/boost/archive/detail/basic_iarchive.hpp:28,
                 from C:/RLibrary/4.0/BH/include/boost/serialization/map.hpp:24,
                 from ./mlpack/prereqs.hpp:91,
                 from ./mlpack/core/data/load.hpp:17,
                 from ./mlpack/core/data/load.cpp:12,
                 from ../inst/include/RcppMLPACK.h:50,
                 from RcppExports.cpp:4:
C:/RLibrary/4.0/BH/include/boost/smart_ptr/shared_ptr.hpp:567:34: warning: 'template<class> class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
     shared_ptr & operator=( std::auto_ptr<Y> & r )
                                  ^~~~~~~~
In file included from C:/rtools40/mingw32/include/c++/8.3.0/bits/locale_conv.h:41,
                 from C:/rtools40/mingw32/include/c++/8.3.0/locale:43,
                 from C:/rtools40/mingw32/include/c++/8.3.0/iomanip:43,
                 from C:/RLibrary/4.0/Rcpp/include/RcppCommon.h:52,
                 from C:/RLibrary/4.0/Rcpp/include/Rcpp.h:27,
                 from ../inst/include/RcppMLPACK.h:29,
                 from RcppExports.cpp:4:
C:/rtools40/mingw32/include/c++/8.3.0/bits/unique_ptr.h:53:28: note: declared here
   template<typename> class auto_ptr;
                            ^~~~~~~~
In file included from C:/RLibrary/4.0/BH/include/boost/archive/detail/helper_collection.hpp:27,
                 from C:/RLibrary/4.0/BH/include/boost/archive/detail/basic_iarchive.hpp:28,
                 from C:/RLibrary/4.0/BH/include/boost/serialization/map.hpp:24,
                 from ./mlpack/prereqs.hpp:91,
                 from ./mlpack/core/data/load.hpp:17,
                 from ./mlpack/core/data/load.cpp:12,
                 from ../inst/include/RcppMLPACK.h:50,
                 from RcppExports.cpp:4:
C:/RLibrary/4.0/BH/include/boost/smart_ptr/shared_ptr.hpp:576:34: warning: 'template<class> class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
     shared_ptr & operator=( std::auto_ptr<Y> && r )
                                  ^~~~~~~~
In file included from C:/rtools40/mingw32/include/c++/8.3.0/bits/locale_conv.h:41,
                 from C:/rtools40/mingw32/include/c++/8.3.0/locale:43,
                 from C:/rtools40/mingw32/include/c++/8.3.0/iomanip:43,
                 from C:/RLibrary/4.0/Rcpp/include/RcppCommon.h:52,
                 from C:/RLibrary/4.0/Rcpp/include/Rcpp.h:27,
                 from ../inst/include/RcppMLPACK.h:29,
                 from RcppExports.cpp:4:
C:/rtools40/mingw32/include/c++/8.3.0/bits/unique_ptr.h:53:28: note: declared here
   template<typename> class auto_ptr;
                            ^~~~~~~~
In file included from C:/RLibrary/4.0/BH/include/boost/archive/detail/helper_collection.hpp:27,
                 from C:/RLibrary/4.0/BH/include/boost/archive/detail/basic_iarchive.hpp:28,
                 from C:/RLibrary/4.0/BH/include/boost/serialization/map.hpp:24,
                 from ./mlpack/prereqs.hpp:91,
                 from ./mlpack/core/data/load.hpp:17,
                 from ./mlpack/core/data/load.cpp:12,
                 from ../inst/include/RcppMLPACK.h:50,
                 from RcppExports.cpp:4:
C:/RLibrary/4.0/BH/include/boost/smart_ptr/shared_ptr.hpp: In member function 'boost::shared_ptr<T>& boost::shared_ptr<T>::operator=(std::auto_ptr<_Up>&&)':
C:/RLibrary/4.0/BH/include/boost/smart_ptr/shared_ptr.hpp:578:38: warning: 'template<class> class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
         this_type( static_cast< std::auto_ptr<Y> && >( r ) ).swap( *this );
                                      ^~~~~~~~
In file included from C:/rtools40/mingw32/include/c++/8.3.0/bits/locale_conv.h:41,
                 from C:/rtools40/mingw32/include/c++/8.3.0/locale:43,
                 from C:/rtools40/mingw32/include/c++/8.3.0/iomanip:43,
                 from C:/RLibrary/4.0/Rcpp/include/RcppCommon.h:52,
                 from C:/RLibrary/4.0/Rcpp/include/Rcpp.h:27,
                 from ../inst/include/RcppMLPACK.h:29,
                 from RcppExports.cpp:4:
C:/rtools40/mingw32/include/c++/8.3.0/bits/unique_ptr.h:53:28: note: declared here
   template<typename> class auto_ptr;
                            ^~~~~~~~
In file included from C:/RLibrary/4.0/BH/include/boost/serialization/version.hpp:20,
                 from C:/RLibrary/4.0/BH/include/boost/serialization/collections_save_imp.hpp:25,
                 from C:/RLibrary/4.0/BH/include/boost/serialization/map.hpp:32,
                 from ./mlpack/prereqs.hpp:91,
                 from ./mlpack/core/data/load.hpp:17,
                 from ./mlpack/core/data/load.cpp:12,
                 from ../inst/include/RcppMLPACK.h:50,
                 from RcppExports.cpp:4:
C:/RLibrary/4.0/BH/include/boost/mpl/assert.hpp: At global scope:
C:/RLibrary/4.0/BH/include/boost/mpl/assert.hpp:194:21: warning: unnecessary parentheses in declaration of 'assert_arg' [-Wparentheses]
 failed ************ (Pred::************
                     ^
C:/RLibrary/4.0/BH/include/boost/mpl/assert.hpp:199:21: warning: unnecessary parentheses in declaration of 'assert_not_arg' [-Wparentheses]
 failed ************ (boost::mpl::not_<Pred>::************
                     ^
In file included from ./mlpack/prereqs.hpp:125,
                 from ./mlpack/core/data/load.hpp:17,
                 from ./mlpack/core/data/load.cpp:12,
                 from ../inst/include/RcppMLPACK.h:50,
                 from RcppExports.cpp:4:
./mlpack/core/util/arma_config_check.hpp:31:21: note: #pragma message: mlpack was compiled with ARMA_64BIT_WORD, but you are compiling without ARMA_64BIT_WORD.  This will almost certainly cause irreparable disaster.  Either enable ARMA_64BIT_WORD in your application which is using mlpack, or, recompile mlpack against a version of Armadillo which has ARMA_64BIT_WORD disabled.
     #pragma message "mlpack was compiled with ARMA_64BIT_WORD, but you are \
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 compiling without ARMA_64BIT_WORD.  This will almost certainly cause \
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 irreparable disaster.  Either enable ARMA_64BIT_WORD in your application which \
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 is using mlpack, or, recompile mlpack against a version of Armadillo which has \
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 ARMA_64BIT_WORD disabled."
 ~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from C:/RLibrary/4.0/BH/include/boost/bind/mem_fn.hpp:25,
                 from C:/RLibrary/4.0/BH/include/boost/mem_fn.hpp:22,
                 from C:/RLibrary/4.0/BH/include/boost/function/detail/prologue.hpp:18,
                 from C:/RLibrary/4.0/BH/include/boost/function.hpp:30,
                 from C:/RLibrary/4.0/BH/include/boost/algorithm/string/detail/find_iterator.hpp:18,
                 from C:/RLibrary/4.0/BH/include/boost/algorithm/string/find_iterator.hpp:24,
                 from C:/RLibrary/4.0/BH/include/boost/algorithm/string/iter_find.hpp:27,
                 from C:/RLibrary/4.0/BH/include/boost/algorithm/string/split.hpp:16,
                 from C:/RLibrary/4.0/BH/include/boost/algorithm/string.hpp:23,
                 from ./mlpack/core/data/load_model_impl.hpp:29,
                 from ./mlpack/core/data/load.hpp:400,
                 from ./mlpack/core/data/load.cpp:12,
                 from ../inst/include/RcppMLPACK.h:50,
                 from RcppExports.cpp:4:
C:/RLibrary/4.0/BH/include/boost/get_pointer.hpp:48:40: warning: 'template<class> class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
 template<class T> T * get_pointer(std::auto_ptr<T> const& p)
                                        ^~~~~~~~
In file included from C:/rtools40/mingw32/include/c++/8.3.0/bits/locale_conv.h:41,
                 from C:/rtools40/mingw32/include/c++/8.3.0/locale:43,
                 from C:/rtools40/mingw32/include/c++/8.3.0/iomanip:43,
                 from C:/RLibrary/4.0/Rcpp/include/RcppCommon.h:52,
                 from C:/RLibrary/4.0/Rcpp/include/Rcpp.h:27,
                 from ../inst/include/RcppMLPACK.h:29,
                 from RcppExports.cpp:4:
C:/rtools40/mingw32/include/c++/8.3.0/bits/unique_ptr.h:53:28: note: declared here
   template<typename> class auto_ptr;
                            ^~~~~~~~
In file included from C:/RLibrary/4.0/BH/include/boost/spirit/home/support/common_terminals.hpp:17,
                 from C:/RLibrary/4.0/BH/include/boost/spirit/home/qi/auto/auto.hpp:13,
                 from C:/RLibrary/4.0/BH/include/boost/spirit/home/qi/auto.hpp:15,
                 from C:/RLibrary/4.0/BH/include/boost/spirit/home/qi.hpp:15,
                 from C:/RLibrary/4.0/BH/include/boost/spirit/include/qi.hpp:16,
                 from ./mlpack/core/data/load_csv.hpp:15,
                 from ./mlpack/core/data/load_impl.hpp:21,
                 from ./mlpack/core/data/load.cpp:13,
                 from ../inst/include/RcppMLPACK.h:50,
                 from RcppExports.cpp:4:
C:/RLibrary/4.0/BH/include/boost/spirit/home/support/char_encoding/standard_wide.hpp: In static member function 'static bool boost::spirit::char_encoding::standard_wide::strict_ischar(int)':
C:/RLibrary/4.0/BH/include/boost/spirit/home/support/char_encoding/standard_wide.hpp:86:23: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
             return ch >= WCHAR_MIN && ch <= WCHAR_MAX;
                       ^
C:/RLibrary/4.0/BH/include/boost/spirit/home/support/char_encoding/standard_wide.hpp:86:42: warning: comparison of integer expressions of different signedness: 'int' and 'unsigned int' [-Wsign-compare]
             return ch >= WCHAR_MIN && ch <= WCHAR_MAX;
                                          ^
In file included from ./mlpack/core/data/load.cpp:13,
                 from ../inst/include/RcppMLPACK.h:50,
                 from RcppExports.cpp:4:
./mlpack/core/data/load_impl.hpp: In function 'bool mlpack::data::Load(const string&, arma::Mat<eT>&, bool, bool)':
./mlpack/core/data/load_impl.hpp:123:30: warning: 'static arma::file_type arma::diskio::guess_file_type(std::istream&)' is deprecated [-Wdeprecated-declarations]
     loadType = arma::diskio::guess_file_type(stream);
                              ^~~~~~~~~~~~~~~
In file included from C:/RLibrary/4.0/RcppArmadillo/include/armadillo:651,
                 from ./mlpack/core/arma_extend/arma_extend.hpp:50,
                 from ./mlpack/prereqs.hpp:120,
                 from ./mlpack/core/data/load.hpp:17,
                 from ./mlpack/core/data/load.cpp:12,
                 from ../inst/include/RcppMLPACK.h:50,
                 from RcppExports.cpp:4:
C:/RLibrary/4.0/RcppArmadillo/include/armadillo_bits/diskio_meat.hpp:218:1: note: declared here
 diskio::guess_file_type(std::istream& f)
 ^~~~~~
In file included from ./mlpack/core/data/load.cpp:13,
                 from ../inst/include/RcppMLPACK.h:50,
                 from RcppExports.cpp:4:
./mlpack/core/data/load_impl.hpp:123:52: warning: 'static arma::file_type arma::diskio::guess_file_type(std::istream&)' is deprecated [-Wdeprecated-declarations]
     loadType = arma::diskio::guess_file_type(stream);
                                                    ^
In file included from C:/RLibrary/4.0/RcppArmadillo/include/armadillo:651,
                 from ./mlpack/core/arma_extend/arma_extend.hpp:50,
                 from ./mlpack/prereqs.hpp:120,
                 from ./mlpack/core/data/load.hpp:17,
                 from ./mlpack/core/data/load.cpp:12,
                 from ../inst/include/RcppMLPACK.h:50,
                 from RcppExports.cpp:4:
C:/RLibrary/4.0/RcppArmadillo/include/armadillo_bits/diskio_meat.hpp:218:1: note: declared here
 diskio::guess_file_type(std::istream& f)
 ^~~~~~
In file included from ./mlpack/core/data/load.cpp:13,
                 from ../inst/include/RcppMLPACK.h:50,
                 from RcppExports.cpp:4:
./mlpack/core/data/load_impl.hpp:187:32: warning: 'static arma::file_type arma::diskio::guess_file_type(std::istream&)' is deprecated [-Wdeprecated-declarations]
       loadType = arma::diskio::guess_file_type(stream);
                                ^~~~~~~~~~~~~~~
In file included from C:/RLibrary/4.0/RcppArmadillo/include/armadillo:651,
                 from ./mlpack/core/arma_extend/arma_extend.hpp:50,
                 from ./mlpack/prereqs.hpp:120,
                 from ./mlpack/core/data/load.hpp:17,
                 from ./mlpack/core/data/load.cpp:12,
                 from ../inst/include/RcppMLPACK.h:50,
                 from RcppExports.cpp:4:
C:/RLibrary/4.0/RcppArmadillo/include/armadillo_bits/diskio_meat.hpp:218:1: note: declared here
 diskio::guess_file_type(std::istream& f)
 ^~~~~~
In file included from ./mlpack/core/data/load.cpp:13,
                 from ../inst/include/RcppMLPACK.h:50,
                 from RcppExports.cpp:4:
./mlpack/core/data/load_impl.hpp:187:54: warning: 'static arma::file_type arma::diskio::guess_file_type(std::istream&)' is deprecated [-Wdeprecated-declarations]
       loadType = arma::diskio::guess_file_type(stream);
                                                      ^
In file included from C:/RLibrary/4.0/RcppArmadillo/include/armadillo:651,
                 from ./mlpack/core/arma_extend/arma_extend.hpp:50,
                 from ./mlpack/prereqs.hpp:120,
                 from ./mlpack/core/data/load.hpp:17,
                 from ./mlpack/core/data/load.cpp:12,
                 from ../inst/include/RcppMLPACK.h:50,
                 from RcppExports.cpp:4:
C:/RLibrary/4.0/RcppArmadillo/include/armadillo_bits/diskio_meat.hpp:218:1: note: declared here
 diskio::guess_file_type(std::istream& f)
 ^~~~~~
In file included from ./mlpack/core/data/load.cpp:13,
                 from ../inst/include/RcppMLPACK.h:50,
                 from RcppExports.cpp:4:
./mlpack/core/data/load_impl.hpp: In instantiation of 'bool mlpack::data::Load(const string&, arma::Mat<eT>&, bool, bool) [with eT = int; std::__cxx11::string = std::__cxx11::basic_string<char>]':
./mlpack/core/data/load.cpp:21:35:   required from here
./mlpack/core/data/load_impl.hpp:123:45: warning: 'static arma::file_type arma::diskio::guess_file_type(std::istream&)' is deprecated [-Wdeprecated-declarations]
     loadType = arma::diskio::guess_file_type(stream);
                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
In file included from C:/RLibrary/4.0/RcppArmadillo/include/armadillo:651,
                 from ./mlpack/core/arma_extend/arma_extend.hpp:50,
                 from ./mlpack/prereqs.hpp:120,
                 from ./mlpack/core/data/load.hpp:17,
                 from ./mlpack/core/data/load.cpp:12,
                 from ../inst/include/RcppMLPACK.h:50,
                 from RcppExports.cpp:4:
C:/RLibrary/4.0/RcppArmadillo/include/armadillo_bits/diskio_meat.hpp:218:1: note: declared here
 diskio::guess_file_type(std::istream& f)
 ^~~~~~
In file included from ./mlpack/core/data/load.cpp:13,
                 from ../inst/include/RcppMLPACK.h:50,
                 from RcppExports.cpp:4:
./mlpack/core/data/load_impl.hpp:123:45: warning: 'static arma::file_type arma::diskio::guess_file_type(std::istream&)' is deprecated [-Wdeprecated-declarations]
     loadType = arma::diskio::guess_file_type(stream);
                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
In file included from C:/RLibrary/4.0/RcppArmadillo/include/armadillo:651,
                 from ./mlpack/core/arma_extend/arma_extend.hpp:50,
                 from ./mlpack/prereqs.hpp:120,
                 from ./mlpack/core/data/load.hpp:17,
                 from ./mlpack/core/data/load.cpp:12,
                 from ../inst/include/RcppMLPACK.h:50,
                 from RcppExports.cpp:4:
C:/RLibrary/4.0/RcppArmadillo/include/armadillo_bits/diskio_meat.hpp:218:1: note: declared here
 diskio::guess_file_type(std::istream& f)
 ^~~~~~
In file included from ./mlpack/core/data/load.cpp:13,
                 from ../inst/include/RcppMLPACK.h:50,
                 from RcppExports.cpp:4:
./mlpack/core/data/load_impl.hpp:123:45: warning: 'static arma::file_type arma::diskio::guess_file_type(std::istream&)' is deprecated [-Wdeprecated-declarations]
     loadType = arma::diskio::guess_file_type(stream);
                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
In file included from C:/RLibrary/4.0/RcppArmadillo/include/armadillo:651,
                 from ./mlpack/core/arma_extend/arma_extend.hpp:50,
                 from ./mlpack/prereqs.hpp:120,
                 from ./mlpack/core/data/load.hpp:17,
                 from ./mlpack/core/data/load.cpp:12,
                 from ../inst/include/RcppMLPACK.h:50,
                 from RcppExports.cpp:4:
C:/RLibrary/4.0/RcppArmadillo/include/armadillo_bits/diskio_meat.hpp:218:1: note: declared here
 diskio::guess_file_type(std::istream& f)
 ^~~~~~
In file included from ./mlpack/core/data/load.cpp:13,
                 from ../inst/include/RcppMLPACK.h:50,
                 from RcppExports.cpp:4:
./mlpack/core/data/load_impl.hpp:187:47: warning: 'static arma::file_type arma::diskio::guess_file_type(std::istream&)' is deprecated [-Wdeprecated-declarations]
       loadType = arma::diskio::guess_file_type(stream);
                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
In file included from C:/RLibrary/4.0/RcppArmadillo/include/armadillo:651,
                 from ./mlpack/core/arma_extend/arma_extend.hpp:50,
                 from ./mlpack/prereqs.hpp:120,
                 from ./mlpack/core/data/load.hpp:17,
                 from ./mlpack/core/data/load.cpp:12,
                 from ../inst/include/RcppMLPACK.h:50,
                 from RcppExports.cpp:4:
C:/RLibrary/4.0/RcppArmadillo/include/armadillo_bits/diskio_meat.hpp:218:1: note: declared here
 diskio::guess_file_type(std::istream& f)
 ^~~~~~
In file included from ./mlpack/core/data/load.cpp:13,
                 from ../inst/include/RcppMLPACK.h:50,
                 from RcppExports.cpp:4:
./mlpack/core/data/load_impl.hpp:187:47: warning: 'static arma::file_type arma::diskio::guess_file_type(std::istream&)' is deprecated [-Wdeprecated-declarations]
       loadType = arma::diskio::guess_file_type(stream);
                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
In file included from C:/RLibrary/4.0/RcppArmadillo/include/armadillo:651,
                 from ./mlpack/core/arma_extend/arma_extend.hpp:50,
                 from ./mlpack/prereqs.hpp:120,
                 from ./mlpack/core/data/load.hpp:17,
                 from ./mlpack/core/data/load.cpp:12,
                 from ../inst/include/RcppMLPACK.h:50,
                 from RcppExports.cpp:4:
C:/RLibrary/4.0/RcppArmadillo/include/armadillo_bits/diskio_meat.hpp:218:1: note: declared here
 diskio::guess_file_type(std::istream& f)
 ^~~~~~
In file included from ./mlpack/core/data/load.cpp:13,
                 from ../inst/include/RcppMLPACK.h:50,
                 from RcppExports.cpp:4:
./mlpack/core/data/load_impl.hpp:187:47: warning: 'static arma::file_type arma::diskio::guess_file_type(std::istream&)' is deprecated [-Wdeprecated-declarations]
       loadType = arma::diskio::guess_file_type(stream);
                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
In file included from C:/RLibrary/4.0/RcppArmadillo/include/armadillo:651,
                 from ./mlpack/core/arma_extend/arma_extend.hpp:50,
                 from ./mlpack/prereqs.hpp:120,
                 from ./mlpack/core/data/load.hpp:17,
                 from ./mlpack/core/data/load.cpp:12,
                 from ../inst/include/RcppMLPACK.h:50,
                 from RcppExports.cpp:4:
C:/RLibrary/4.0/RcppArmadillo/include/armadillo_bits/diskio_meat.hpp:218:1: note: declared here
 diskio::guess_file_type(std::istream& f)
 ^~~~~~
In file included from ./mlpack/core/data/load.cpp:13,
                 from ../inst/include/RcppMLPACK.h:50,
                 from RcppExports.cpp:4:
./mlpack/core/data/load_impl.hpp: In instantiation of 'bool mlpack::data::Load(const string&, arma::Mat<eT>&, bool, bool) [with eT = unsigned int; std::__cxx11::string = std::__cxx11::basic_string<char>]':
./mlpack/core/data/load.cpp:26:44:   required from here
./mlpack/core/data/load_impl.hpp:123:45: warning: 'static arma::file_type arma::diskio::guess_file_type(std::istream&)' is deprecated [-Wdeprecated-declarations]
     loadType = arma::diskio::guess_file_type(stream);
                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
In file included from C:/RLibrary/4.0/RcppArmadillo/include/armadillo:651,
                 from ./mlpack/core/arma_extend/arma_extend.hpp:50,
                 from ./mlpack/prereqs.hpp:120,
                 from ./mlpack/core/data/load.hpp:17,
                 from ./mlpack/core/data/load.cpp:12,
                 from ../inst/include/RcppMLPACK.h:50,
                 from RcppExports.cpp:4:
C:/RLibrary/4.0/RcppArmadillo/include/armadillo_bits/diskio_meat.hpp:218:1: note: declared here
 diskio::guess_file_type(std::istream& f)
 ^~~~~~
In file included from ./mlpack/core/data/load.cpp:13,
                 from ../inst/include/RcppMLPACK.h:50,
                 from RcppExports.cpp:4:
./mlpack/core/data/load_impl.hpp:123:45: warning: 'static arma::file_type arma::diskio::guess_file_type(std::istream&)' is deprecated [-Wdeprecated-declarations]
     loadType = arma::diskio::guess_file_type(stream);
                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
In file included from C:/RLibrary/4.0/RcppArmadillo/include/armadillo:651,
                 from ./mlpack/core/arma_extend/arma_extend.hpp:50,
                 from ./mlpack/prereqs.hpp:120,
                 from ./mlpack/core/data/load.hpp:17,
                 from ./mlpack/core/data/load.cpp:12,
                 from ../inst/include/RcppMLPACK.h:50,
                 from RcppExports.cpp:4:
C:/RLibrary/4.0/RcppArmadillo/include/armadillo_bits/diskio_meat.hpp:218:1: note: declared here
 diskio::guess_file_type(std::istream& f)
 ^~~~~~
In file included from ./mlpack/core/data/load.cpp:13,
                 from ../inst/include/RcppMLPACK.h:50,
                 from RcppExports.cpp:4:
./mlpack/core/data/load_impl.hpp:123:45: warning: 'static arma::file_type arma::diskio::guess_file_type(std::istream&)' is deprecated [-Wdeprecated-declarations]
     loadType = arma::diskio::guess_file_type(stream);
                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
In file included from C:/RLibrary/4.0/RcppArmadillo/include/armadillo:651,
                 from ./mlpack/core/arma_extend/arma_extend.hpp:50,
                 from ./mlpack/prereqs.hpp:120,
                 from ./mlpack/core/data/load.hpp:17,
                 from ./mlpack/core/data/load.cpp:12,
                 from ../inst/include/RcppMLPACK.h:50,
                 from RcppExports.cpp:4:
C:/RLibrary/4.0/RcppArmadillo/include/armadillo_bits/diskio_meat.hpp:218:1: note: declared here
 diskio::guess_file_type(std::istream& f)
 ^~~~~~
In file included from ./mlpack/core/data/load.cpp:13,
                 from ../inst/include/RcppMLPACK.h:50,
                 from RcppExports.cpp:4:
./mlpack/core/data/load_impl.hpp:187:47: warning: 'static arma::file_type arma::diskio::guess_file_type(std::istream&)' is deprecated [-Wdeprecated-declarations]
       loadType = arma::diskio::guess_file_type(stream);
                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
In file included from C:/RLibrary/4.0/RcppArmadillo/include/armadillo:651,
                 from ./mlpack/core/arma_extend/arma_extend.hpp:50,
                 from ./mlpack/prereqs.hpp:120,
                 from ./mlpack/core/data/load.hpp:17,
                 from ./mlpack/core/data/load.cpp:12,
                 from ../inst/include/RcppMLPACK.h:50,
                 from RcppExports.cpp:4:
C:/RLibrary/4.0/RcppArmadillo/include/armadillo_bits/diskio_meat.hpp:218:1: note: declared here
 diskio::guess_file_type(std::istream& f)
 ^~~~~~
In file included from ./mlpack/core/data/load.cpp:13,
                 from ../inst/include/RcppMLPACK.h:50,
                 from RcppExports.cpp:4:
./mlpack/core/data/load_impl.hpp:187:47: warning: 'static arma::file_type arma::diskio::guess_file_type(std::istream&)' is deprecated [-Wdeprecated-declarations]
       loadType = arma::diskio::guess_file_type(stream);
                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
In file included from C:/RLibrary/4.0/RcppArmadillo/include/armadillo:651,
                 from ./mlpack/core/arma_extend/arma_extend.hpp:50,
                 from ./mlpack/prereqs.hpp:120,
                 from ./mlpack/core/data/load.hpp:17,
                 from ./mlpack/core/data/load.cpp:12,
                 from ../inst/include/RcppMLPACK.h:50,
                 from RcppExports.cpp:4:
C:/RLibrary/4.0/RcppArmadillo/include/armadillo_bits/diskio_meat.hpp:218:1: note: declared here
 diskio::guess_file_type(std::istream& f)
 ^~~~~~
In file included from ./mlpack/core/data/load.cpp:13,
                 from ../inst/include/RcppMLPACK.h:50,
                 from RcppExports.cpp:4:
./mlpack/core/data/load_impl.hpp:187:47: warning: 'static arma::file_type arma::diskio::guess_file_type(std::istream&)' is deprecated [-Wdeprecated-declarations]
       loadType = arma::diskio::guess_file_type(stream);
                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
In file included from C:/RLibrary/4.0/RcppArmadillo/include/armadillo:651,
                 from ./mlpack/core/arma_extend/arma_extend.hpp:50,
                 from ./mlpack/prereqs.hpp:120,
                 from ./mlpack/core/data/load.hpp:17,
                 from ./mlpack/core/data/load.cpp:12,
                 from ../inst/include/RcppMLPACK.h:50,
                 from RcppExports.cpp:4:
C:/RLibrary/4.0/RcppArmadillo/include/armadillo_bits/diskio_meat.hpp:218:1: note: declared here
 diskio::guess_file_type(std::istream& f)
 ^~~~~~
In file included from ./mlpack/core/data/load.cpp:13,
                 from ../inst/include/RcppMLPACK.h:50,
                 from RcppExports.cpp:4:
./mlpack/core/data/load_impl.hpp: In instantiation of 'bool mlpack::data::Load(const string&, arma::Mat<eT>&, bool, bool) [with eT = long unsigned int; std::__cxx11::string = std::__cxx11::basic_string<char>]':
./mlpack/core/data/load.cpp:31:45:   required from here
./mlpack/core/data/load_impl.hpp:123:45: warning: 'static arma::file_type arma::diskio::guess_file_type(std::istream&)' is deprecated [-Wdeprecated-declarations]
     loadType = arma::diskio::guess_file_type(stream);
                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
In file included from C:/RLibrary/4.0/RcppArmadillo/include/armadillo:651,
                 from ./mlpack/core/arma_extend/arma_extend.hpp:50,
                 from ./mlpack/prereqs.hpp:120,
                 from ./mlpack/core/data/load.hpp:17,
                 from ./mlpack/core/data/load.cpp:12,
                 from ../inst/include/RcppMLPACK.h:50,
                 from RcppExports.cpp:4:
C:/RLibrary/4.0/RcppArmadillo/include/armadillo_bits/diskio_meat.hpp:218:1: note: declared here
 diskio::guess_file_type(std::istream& f)
 ^~~~~~
In file included from ./mlpack/core/data/load.cpp:13,
                 from ../inst/include/RcppMLPACK.h:50,
                 from RcppExports.cpp:4:
./mlpack/core/data/load_impl.hpp:123:45: warning: 'static arma::file_type arma::diskio::guess_file_type(std::istream&)' is deprecated [-Wdeprecated-declarations]
     loadType = arma::diskio::guess_file_type(stream);
                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
In file included from C:/RLibrary/4.0/RcppArmadillo/include/armadillo:651,
                 from ./mlpack/core/arma_extend/arma_extend.hpp:50,
                 from ./mlpack/prereqs.hpp:120,
                 from ./mlpack/core/data/load.hpp:17,
                 from ./mlpack/core/data/load.cpp:12,
                 from ../inst/include/RcppMLPACK.h:50,
                 from RcppExports.cpp:4:
C:/RLibrary/4.0/RcppArmadillo/include/armadillo_bits/diskio_meat.hpp:218:1: note: declared here
 diskio::guess_file_type(std::istream& f)
 ^~~~~~
In file included from ./mlpack/core/data/load.cpp:13,
                 from ../inst/include/RcppMLPACK.h:50,
                 from RcppExports.cpp:4:
./mlpack/core/data/load_impl.hpp:123:45: warning: 'static arma::file_type arma::diskio::guess_file_type(std::istream&)' is deprecated [-Wdeprecated-declarations]
     loadType = arma::diskio::guess_file_type(stream);
                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
In file included from C:/RLibrary/4.0/RcppArmadillo/include/armadillo:651,
                 from ./mlpack/core/arma_extend/arma_extend.hpp:50,
                 from ./mlpack/prereqs.hpp:120,
                 from ./mlpack/core/data/load.hpp:17,
                 from ./mlpack/core/data/load.cpp:12,
                 from ../inst/include/RcppMLPACK.h:50,
                 from RcppExports.cpp:4:
C:/RLibrary/4.0/RcppArmadillo/include/armadillo_bits/diskio_meat.hpp:218:1: note: declared here
 diskio::guess_file_type(std::istream& f)
 ^~~~~~
In file included from ./mlpack/core/data/load.cpp:13,
                 from ../inst/include/RcppMLPACK.h:50,
                 from RcppExports.cpp:4:
./mlpack/core/data/load_impl.hpp:187:47: warning: 'static arma::file_type arma::diskio::guess_file_type(std::istream&)' is deprecated [-Wdeprecated-declarations]
       loadType = arma::diskio::guess_file_type(stream);
                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
In file included from C:/RLibrary/4.0/RcppArmadillo/include/armadillo:651,
                 from ./mlpack/core/arma_extend/arma_extend.hpp:50,
                 from ./mlpack/prereqs.hpp:120,
                 from ./mlpack/core/data/load.hpp:17,
                 from ./mlpack/core/data/load.cpp:12,
                 from ../inst/include/RcppMLPACK.h:50,
                 from RcppExports.cpp:4:
C:/RLibrary/4.0/RcppArmadillo/include/armadillo_bits/diskio_meat.hpp:218:1: note: declared here
 diskio::guess_file_type(std::istream& f)
 ^~~~~~
In file included from ./mlpack/core/data/load.cpp:13,
                 from ../inst/include/RcppMLPACK.h:50,
                 from RcppExports.cpp:4:
./mlpack/core/data/load_impl.hpp:187:47: warning: 'static arma::file_type arma::diskio::guess_file_type(std::istream&)' is deprecated [-Wdeprecated-declarations]
       loadType = arma::diskio::guess_file_type(stream);
                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
In file included from C:/RLibrary/4.0/RcppArmadillo/include/armadillo:651,
                 from ./mlpack/core/arma_extend/arma_extend.hpp:50,
                 from ./mlpack/prereqs.hpp:120,
                 from ./mlpack/core/data/load.hpp:17,
                 from ./mlpack/core/data/load.cpp:12,
                 from ../inst/include/RcppMLPACK.h:50,
                 from RcppExports.cpp:4:
C:/RLibrary/4.0/RcppArmadillo/include/armadillo_bits/diskio_meat.hpp:218:1: note: declared here
 diskio::guess_file_type(std::istream& f)
 ^~~~~~
In file included from ./mlpack/core/data/load.cpp:13,
                 from ../inst/include/RcppMLPACK.h:50,
                 from RcppExports.cpp:4:
./mlpack/core/data/load_impl.hpp:187:47: warning: 'static arma::file_type arma::diskio::guess_file_type(std::istream&)' is deprecated [-Wdeprecated-declarations]
       loadType = arma::diskio::guess_file_type(stream);
                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
In file included from C:/RLibrary/4.0/RcppArmadillo/include/armadillo:651,
                 from ./mlpack/core/arma_extend/arma_extend.hpp:50,
                 from ./mlpack/prereqs.hpp:120,
                 from ./mlpack/core/data/load.hpp:17,
                 from ./mlpack/core/data/load.cpp:12,
                 from ../inst/include/RcppMLPACK.h:50,
                 from RcppExports.cpp:4:
C:/RLibrary/4.0/RcppArmadillo/include/armadillo_bits/diskio_meat.hpp:218:1: note: declared here
 diskio::guess_file_type(std::istream& f)
 ^~~~~~
In file included from ./mlpack/core/data/load.cpp:13,
                 from ../inst/include/RcppMLPACK.h:50,
                 from RcppExports.cpp:4:
./mlpack/core/data/load_impl.hpp: In instantiation of 'bool mlpack::data::Load(const string&, arma::Mat<eT>&, bool, bool) [with eT = long long unsigned int; std::__cxx11::string = std::__cxx11::basic_string<char>]':
./mlpack/core/data/load.cpp:36:50:   required from here
./mlpack/core/data/load_impl.hpp:123:45: warning: 'static arma::file_type arma::diskio::guess_file_type(std::istream&)' is deprecated [-Wdeprecated-declarations]
     loadType = arma::diskio::guess_file_type(stream);
                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
In file included from C:/RLibrary/4.0/RcppArmadillo/include/armadillo:651,
                 from ./mlpack/core/arma_extend/arma_extend.hpp:50,
                 from ./mlpack/prereqs.hpp:120,
                 from ./mlpack/core/data/load.hpp:17,
                 from ./mlpack/core/data/load.cpp:12,
                 from ../inst/include/RcppMLPACK.h:50,
                 from RcppExports.cpp:4:
C:/RLibrary/4.0/RcppArmadillo/include/armadillo_bits/diskio_meat.hpp:218:1: note: declared here
 diskio::guess_file_type(std::istream& f)
 ^~~~~~
In file included from ./mlpack/core/data/load.cpp:13,
                 from ../inst/include/RcppMLPACK.h:50,
                 from RcppExports.cpp:4:
./mlpack/core/data/load_impl.hpp:123:45: warning: 'static arma::file_type arma::diskio::guess_file_type(std::istream&)' is deprecated [-Wdeprecated-declarations]
     loadType = arma::diskio::guess_file_type(stream);
                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
In file included from C:/RLibrary/4.0/RcppArmadillo/include/armadillo:651,
                 from ./mlpack/core/arma_extend/arma_extend.hpp:50,
                 from ./mlpack/prereqs.hpp:120,
                 from ./mlpack/core/data/load.hpp:17,
                 from ./mlpack/core/data/load.cpp:12,
                 from ../inst/include/RcppMLPACK.h:50,
                 from RcppExports.cpp:4:
C:/RLibrary/4.0/RcppArmadillo/include/armadillo_bits/diskio_meat.hpp:218:1: note: declared here
 diskio::guess_file_type(std::istream& f)
 ^~~~~~
In file included from ./mlpack/core/data/load.cpp:13,
                 from ../inst/include/RcppMLPACK.h:50,
                 from RcppExports.cpp:4:
./mlpack/core/data/load_impl.hpp:123:45: warning: 'static arma::file_type arma::diskio::guess_file_type(std::istream&)' is deprecated [-Wdeprecated-declarations]
     loadType = arma::diskio::guess_file_type(stream);
                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
In file included from C:/RLibrary/4.0/RcppArmadillo/include/armadillo:651,
                 from ./mlpack/core/arma_extend/arma_extend.hpp:50,
                 from ./mlpack/prereqs.hpp:120,
                 from ./mlpack/core/data/load.hpp:17,
                 from ./mlpack/core/data/load.cpp:12,
                 from ../inst/include/RcppMLPACK.h:50,
                 from RcppExports.cpp:4:
C:/RLibrary/4.0/RcppArmadillo/include/armadillo_bits/diskio_meat.hpp:218:1: note: declared here
 diskio::guess_file_type(std::istream& f)
 ^~~~~~
In file included from ./mlpack/core/data/load.cpp:13,
                 from ../inst/include/RcppMLPACK.h:50,
                 from RcppExports.cpp:4:
./mlpack/core/data/load_impl.hpp:187:47: warning: 'static arma::file_type arma::diskio::guess_file_type(std::istream&)' is deprecated [-Wdeprecated-declarations]
       loadType = arma::diskio::guess_file_type(stream);
                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
In file included from C:/RLibrary/4.0/RcppArmadillo/include/armadillo:651,
                 from ./mlpack/core/arma_extend/arma_extend.hpp:50,
                 from ./mlpack/prereqs.hpp:120,
                 from ./mlpack/core/data/load.hpp:17,
                 from ./mlpack/core/data/load.cpp:12,
                 from ../inst/include/RcppMLPACK.h:50,
                 from RcppExports.cpp:4:
C:/RLibrary/4.0/RcppArmadillo/include/armadillo_bits/diskio_meat.hpp:218:1: note: declared here
 diskio::guess_file_type(std::istream& f)
 ^~~~~~
In file included from ./mlpack/core/data/load.cpp:13,
                 from ../inst/include/RcppMLPACK.h:50,
                 from RcppExports.cpp:4:
./mlpack/core/data/load_impl.hpp:187:47: warning: 'static arma::file_type arma::diskio::guess_file_type(std::istream&)' is deprecated [-Wdeprecated-declarations]
       loadType = arma::diskio::guess_file_type(stream);
                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
In file included from C:/RLibrary/4.0/RcppArmadillo/include/armadillo:651,
                 from ./mlpack/core/arma_extend/arma_extend.hpp:50,
                 from ./mlpack/prereqs.hpp:120,
                 from ./mlpack/core/data/load.hpp:17,
                 from ./mlpack/core/data/load.cpp:12,
                 from ../inst/include/RcppMLPACK.h:50,
                 from RcppExports.cpp:4:
C:/RLibrary/4.0/RcppArmadillo/include/armadillo_bits/diskio_meat.hpp:218:1: note: declared here
 diskio::guess_file_type(std::istream& f)
 ^~~~~~
In file included from ./mlpack/core/data/load.cpp:13,
                 from ../inst/include/RcppMLPACK.h:50,
                 from RcppExports.cpp:4:
./mlpack/core/data/load_impl.hpp:187:47: warning: 'static arma::file_type arma::diskio::guess_file_type(std::istream&)' is deprecated [-Wdeprecated-declarations]
       loadType = arma::diskio::guess_file_type(stream);
                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
In file included from C:/RLibrary/4.0/RcppArmadillo/include/armadillo:651,
                 from ./mlpack/core/arma_extend/arma_extend.hpp:50,
                 from ./mlpack/prereqs.hpp:120,
                 from ./mlpack/core/data/load.hpp:17,
                 from ./mlpack/core/data/load.cpp:12,
                 from ../inst/include/RcppMLPACK.h:50,
                 from RcppExports.cpp:4:
C:/RLibrary/4.0/RcppArmadillo/include/armadillo_bits/diskio_meat.hpp:218:1: note: declared here
 diskio::guess_file_type(std::istream& f)
 ^~~~~~
In file included from ./mlpack/core/data/load.cpp:13,
                 from ../inst/include/RcppMLPACK.h:50,
                 from RcppExports.cpp:4:
./mlpack/core/data/load_impl.hpp: In instantiation of 'bool mlpack::data::Load(const string&, arma::Mat<eT>&, bool, bool) [with eT = float; std::__cxx11::string = std::__cxx11::basic_string<char>]':
./mlpack/core/data/load.cpp:41:37:   required from here
./mlpack/core/data/load_impl.hpp:123:45: warning: 'static arma::file_type arma::diskio::guess_file_type(std::istream&)' is deprecated [-Wdeprecated-declarations]
     loadType = arma::diskio::guess_file_type(stream);
                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
In file included from C:/RLibrary/4.0/RcppArmadillo/include/armadillo:651,
                 from ./mlpack/core/arma_extend/arma_extend.hpp:50,
                 from ./mlpack/prereqs.hpp:120,
                 from ./mlpack/core/data/load.hpp:17,
                 from ./mlpack/core/data/load.cpp:12,
                 from ../inst/include/RcppMLPACK.h:50,
                 from RcppExports.cpp:4:
C:/RLibrary/4.0/RcppArmadillo/include/armadillo_bits/diskio_meat.hpp:218:1: note: declared here
 diskio::guess_file_type(std::istream& f)
 ^~~~~~
In file included from ./mlpack/core/data/load.cpp:13,
                 from ../inst/include/RcppMLPACK.h:50,
                 from RcppExports.cpp:4:
./mlpack/core/data/load_impl.hpp:123:45: warning: 'static arma::file_type arma::diskio::guess_file_type(std::istream&)' is deprecated [-Wdeprecated-declarations]
     loadType = arma::diskio::guess_file_type(stream);
                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
In file included from C:/RLibrary/4.0/RcppArmadillo/include/armadillo:651,
                 from ./mlpack/core/arma_extend/arma_extend.hpp:50,
                 from ./mlpack/prereqs.hpp:120,
                 from ./mlpack/core/data/load.hpp:17,
                 from ./mlpack/core/data/load.cpp:12,
                 from ../inst/include/RcppMLPACK.h:50,
                 from RcppExports.cpp:4:
C:/RLibrary/4.0/RcppArmadillo/include/armadillo_bits/diskio_meat.hpp:218:1: note: declared here
 diskio::guess_file_type(std::istream& f)
 ^~~~~~
In file included from ./mlpack/core/data/load.cpp:13,
                 from ../inst/include/RcppMLPACK.h:50,
                 from RcppExports.cpp:4:
./mlpack/core/data/load_impl.hpp:123:45: warning: 'static arma::file_type arma::diskio::guess_file_type(std::istream&)' is deprecated [-Wdeprecated-declarations]
     loadType = arma::diskio::guess_file_type(stream);
                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
In file included from C:/RLibrary/4.0/RcppArmadillo/include/armadillo:651,
                 from ./mlpack/core/arma_extend/arma_extend.hpp:50,
                 from ./mlpack/prereqs.hpp:120,
                 from ./mlpack/core/data/load.hpp:17,
                 from ./mlpack/core/data/load.cpp:12,
                 from ../inst/include/RcppMLPACK.h:50,
                 from RcppExports.cpp:4:
C:/RLibrary/4.0/RcppArmadillo/include/armadillo_bits/diskio_meat.hpp:218:1: note: declared here
 diskio::guess_file_type(std::istream& f)
 ^~~~~~
In file included from ./mlpack/core/data/load.cpp:13,
                 from ../inst/include/RcppMLPACK.h:50,
                 from RcppExports.cpp:4:
./mlpack/core/data/load_impl.hpp:187:47: warning: 'static arma::file_type arma::diskio::guess_file_type(std::istream&)' is deprecated [-Wdeprecated-declarations]
       loadType = arma::diskio::guess_file_type(stream);
                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
In file included from C:/RLibrary/4.0/RcppArmadillo/include/armadillo:651,
                 from ./mlpack/core/arma_extend/arma_extend.hpp:50,
                 from ./mlpack/prereqs.hpp:120,
                 from ./mlpack/core/data/load.hpp:17,
                 from ./mlpack/core/data/load.cpp:12,
                 from ../inst/include/RcppMLPACK.h:50,
                 from RcppExports.cpp:4:
C:/RLibrary/4.0/RcppArmadillo/include/armadillo_bits/diskio_meat.hpp:218:1: note: declared here
 diskio::guess_file_type(std::istream& f)
 ^~~~~~
In file included from ./mlpack/core/data/load.cpp:13,
                 from ../inst/include/RcppMLPACK.h:50,
                 from RcppExports.cpp:4:
./mlpack/core/data/load_impl.hpp:187:47: warning: 'static arma::file_type arma::diskio::guess_file_type(std::istream&)' is deprecated [-Wdeprecated-declarations]
       loadType = arma::diskio::guess_file_type(stream);
                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
In file included from C:/RLibrary/4.0/RcppArmadillo/include/armadillo:651,
                 from ./mlpack/core/arma_extend/arma_extend.hpp:50,
                 from ./mlpack/prereqs.hpp:120,
                 from ./mlpack/core/data/load.hpp:17,
                 from ./mlpack/core/data/load.cpp:12,
                 from ../inst/include/RcppMLPACK.h:50,
                 from RcppExports.cpp:4:
C:/RLibrary/4.0/RcppArmadillo/include/armadillo_bits/diskio_meat.hpp:218:1: note: declared here
 diskio::guess_file_type(std::istream& f)
 ^~~~~~
In file included from ./mlpack/core/data/load.cpp:13,
                 from ../inst/include/RcppMLPACK.h:50,
                 from RcppExports.cpp:4:
./mlpack/core/data/load_impl.hpp:187:47: warning: 'static arma::file_type arma::diskio::guess_file_type(std::istream&)' is deprecated [-Wdeprecated-declarations]
       loadType = arma::diskio::guess_file_type(stream);
                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
In file included from C:/RLibrary/4.0/RcppArmadillo/include/armadillo:651,
                 from ./mlpack/core/arma_extend/arma_extend.hpp:50,
                 from ./mlpack/prereqs.hpp:120,
                 from ./mlpack/core/data/load.hpp:17,
                 from ./mlpack/core/data/load.cpp:12,
                 from ../inst/include/RcppMLPACK.h:50,
                 from RcppExports.cpp:4:
C:/RLibrary/4.0/RcppArmadillo/include/armadillo_bits/diskio_meat.hpp:218:1: note: declared here
 diskio::guess_file_type(std::istream& f)
 ^~~~~~
In file included from ./mlpack/core/data/load.cpp:13,
                 from ../inst/include/RcppMLPACK.h:50,
                 from RcppExports.cpp:4:
./mlpack/core/data/load_impl.hpp: In instantiation of 'bool mlpack::data::Load(const string&, arma::Mat<eT>&, bool, bool) [with eT = double; std::__cxx11::string = std::__cxx11::basic_string<char>]':
./mlpack/core/data/load.cpp:46:38:   required from here
./mlpack/core/data/load_impl.hpp:123:45: warning: 'static arma::file_type arma::diskio::guess_file_type(std::istream&)' is deprecated [-Wdeprecated-declarations]
     loadType = arma::diskio::guess_file_type(stream);
                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
In file included from C:/RLibrary/4.0/RcppArmadillo/include/armadillo:651,
                 from ./mlpack/core/arma_extend/arma_extend.hpp:50,
                 from ./mlpack/prereqs.hpp:120,
                 from ./mlpack/core/data/load.hpp:17,
                 from ./mlpack/core/data/load.cpp:12,
                 from ../inst/include/RcppMLPACK.h:50,
                 from RcppExports.cpp:4:
C:/RLibrary/4.0/RcppArmadillo/include/armadillo_bits/diskio_meat.hpp:218:1: note: declared here
 diskio::guess_file_type(std::istream& f)
 ^~~~~~
In file included from ./mlpack/core/data/load.cpp:13,
                 from ../inst/include/RcppMLPACK.h:50,
                 from RcppExports.cpp:4:
./mlpack/core/data/load_impl.hpp:123:45: warning: 'static arma::file_type arma::diskio::guess_file_type(std::istream&)' is deprecated [-Wdeprecated-declarations]
     loadType = arma::diskio::guess_file_type(stream);
                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
In file included from C:/RLibrary/4.0/RcppArmadillo/include/armadillo:651,
                 from ./mlpack/core/arma_extend/arma_extend.hpp:50,
                 from ./mlpack/prereqs.hpp:120,
                 from ./mlpack/core/data/load.hpp:17,
                 from ./mlpack/core/data/load.cpp:12,
                 from ../inst/include/RcppMLPACK.h:50,
                 from RcppExports.cpp:4:
C:/RLibrary/4.0/RcppArmadillo/include/armadillo_bits/diskio_meat.hpp:218:1: note: declared here
 diskio::guess_file_type(std::istream& f)
 ^~~~~~
In file included from ./mlpack/core/data/load.cpp:13,
                 from ../inst/include/RcppMLPACK.h:50,
                 from RcppExports.cpp:4:
./mlpack/core/data/load_impl.hpp:123:45: warning: 'static arma::file_type arma::diskio::guess_file_type(std::istream&)' is deprecated [-Wdeprecated-declarations]
     loadType = arma::diskio::guess_file_type(stream);
                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
In file included from C:/RLibrary/4.0/RcppArmadillo/include/armadillo:651,
                 from ./mlpack/core/arma_extend/arma_extend.hpp:50,
                 from ./mlpack/prereqs.hpp:120,
                 from ./mlpack/core/data/load.hpp:17,
                 from ./mlpack/core/data/load.cpp:12,
                 from ../inst/include/RcppMLPACK.h:50,
                 from RcppExports.cpp:4:
C:/RLibrary/4.0/RcppArmadillo/include/armadillo_bits/diskio_meat.hpp:218:1: note: declared here
 diskio::guess_file_type(std::istream& f)
 ^~~~~~
In file included from ./mlpack/core/data/load.cpp:13,
                 from ../inst/include/RcppMLPACK.h:50,
                 from RcppExports.cpp:4:
./mlpack/core/data/load_impl.hpp:187:47: warning: 'static arma::file_type arma::diskio::guess_file_type(std::istream&)' is deprecated [-Wdeprecated-declarations]
       loadType = arma::diskio::guess_file_type(stream);
                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
In file included from C:/RLibrary/4.0/RcppArmadillo/include/armadillo:651,
                 from ./mlpack/core/arma_extend/arma_extend.hpp:50,
                 from ./mlpack/prereqs.hpp:120,
                 from ./mlpack/core/data/load.hpp:17,
                 from ./mlpack/core/data/load.cpp:12,
                 from ../inst/include/RcppMLPACK.h:50,
                 from RcppExports.cpp:4:
C:/RLibrary/4.0/RcppArmadillo/include/armadillo_bits/diskio_meat.hpp:218:1: note: declared here
 diskio::guess_file_type(std::istream& f)
 ^~~~~~
In file included from ./mlpack/core/data/load.cpp:13,
                 from ../inst/include/RcppMLPACK.h:50,
                 from RcppExports.cpp:4:
./mlpack/core/data/load_impl.hpp:187:47: warning: 'static arma::file_type arma::diskio::guess_file_type(std::istream&)' is deprecated [-Wdeprecated-declarations]
       loadType = arma::diskio::guess_file_type(stream);
                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
In file included from C:/RLibrary/4.0/RcppArmadillo/include/armadillo:651,
                 from ./mlpack/core/arma_extend/arma_extend.hpp:50,
                 from ./mlpack/prereqs.hpp:120,
                 from ./mlpack/core/data/load.hpp:17,
                 from ./mlpack/core/data/load.cpp:12,
                 from ../inst/include/RcppMLPACK.h:50,
                 from RcppExports.cpp:4:
C:/RLibrary/4.0/RcppArmadillo/include/armadillo_bits/diskio_meat.hpp:218:1: note: declared here
 diskio::guess_file_type(std::istream& f)
 ^~~~~~
In file included from ./mlpack/core/data/load.cpp:13,
                 from ../inst/include/RcppMLPACK.h:50,
                 from RcppExports.cpp:4:
./mlpack/core/data/load_impl.hpp:187:47: warning: 'static arma::file_type arma::diskio::guess_file_type(std::istream&)' is deprecated [-Wdeprecated-declarations]
       loadType = arma::diskio::guess_file_type(stream);
                  ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~
In file included from C:/RLibrary/4.0/RcppArmadillo/include/armadillo:651,
                 from ./mlpack/core/arma_extend/arma_extend.hpp:50,
                 from ./mlpack/prereqs.hpp:120,
                 from ./mlpack/core/data/load.hpp:17,
                 from ./mlpack/core/data/load.cpp:12,
                 from ../inst/include/RcppMLPACK.h:50,
                 from RcppExports.cpp:4:
C:/RLibrary/4.0/RcppArmadillo/include/armadillo_bits/diskio_meat.hpp:218:1: note: declared here
 diskio::guess_file_type(std::istream& f)
 ^~~~~~
"c:/rtools40/mingw32/bin/"g++  -std=gnu++11 -I"C:/R/include" -DNDEBUG  -I'C:/RLibrary/4.0/Rcpp/include' -I'C:/RLibrary/4.0/RcppArmadillo/include' -I'C:/RLibrary/4.0/BH/include' -I'C:/RLibrary/4.0/RcppEnsmallen/include'     -I. -fopenmp   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign -c adaboost.cpp -o adaboost.o
In file included from C:/RLibrary/4.0/BH/include/boost/scoped_ptr.hpp:13,
                 from C:/RLibrary/4.0/BH/include/boost/archive/detail/basic_iarchive.hpp:23,
                 from C:/RLibrary/4.0/BH/include/boost/serialization/map.hpp:24,
                 from ./mlpack/prereqs.hpp:91,
                 from ./mlpack/core.hpp:67,
                 from ./rcpp_mlpack.h:53,
                 from adaboost.cpp:7:
C:/RLibrary/4.0/BH/include/boost/smart_ptr/scoped_ptr.hpp:74:31: warning: 'template<class> class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
     explicit scoped_ptr( std::auto_ptr<T> p ) BOOST_SP_NOEXCEPT : px( p.release() )
                               ^~~~~~~~
In file included from C:/rtools40/mingw32/include/c++/8.3.0/bits/locale_conv.h:41,
                 from C:/rtools40/mingw32/include/c++/8.3.0/locale:43,
                 from C:/rtools40/mingw32/include/c++/8.3.0/iomanip:43,
                 from C:/RLibrary/4.0/Rcpp/include/RcppCommon.h:52,
                 from C:/RLibrary/4.0/Rcpp/include/Rcpp.h:27,
                 from ./rcpp_mlpack.h:30,
                 from adaboost.cpp:7:
C:/rtools40/mingw32/include/c++/8.3.0/bits/unique_ptr.h:53:28: note: declared here
   template<typename> class auto_ptr;
                            ^~~~~~~~
In file included from C:/RLibrary/4.0/BH/include/boost/smart_ptr/shared_ptr.hpp:28,
                 from C:/RLibrary/4.0/BH/include/boost/archive/detail/helper_collection.hpp:27,
                 from C:/RLibrary/4.0/BH/include/boost/archive/detail/basic_iarchive.hpp:28,
                 from C:/RLibrary/4.0/BH/include/boost/serialization/map.hpp:24,
                 from ./mlpack/prereqs.hpp:91,
                 from ./mlpack/core.hpp:67,
                 from ./rcpp_mlpack.h:53,
                 from adaboost.cpp:7:
C:/RLibrary/4.0/BH/include/boost/smart_ptr/detail/shared_count.hpp:356:33: warning: 'template<class> class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
     explicit shared_count( std::auto_ptr<Y> & r ): pi_( new sp_counted_impl_p<Y>( r.get() ) )
                                 ^~~~~~~~
In file included from C:/rtools40/mingw32/include/c++/8.3.0/bits/locale_conv.h:41,
                 from C:/rtools40/mingw32/include/c++/8.3.0/locale:43,
                 from C:/rtools40/mingw32/include/c++/8.3.0/iomanip:43,
                 from C:/RLibrary/4.0/Rcpp/include/RcppCommon.h:52,
                 from C:/RLibrary/4.0/Rcpp/include/Rcpp.h:27,
                 from ./rcpp_mlpack.h:30,
                 from adaboost.cpp:7:
C:/rtools40/mingw32/include/c++/8.3.0/bits/unique_ptr.h:53:28: note: declared here
   template<typename> class auto_ptr;
                            ^~~~~~~~
In file included from C:/RLibrary/4.0/BH/include/boost/archive/detail/helper_collection.hpp:27,
                 from C:/RLibrary/4.0/BH/include/boost/archive/detail/basic_iarchive.hpp:28,
                 from C:/RLibrary/4.0/BH/include/boost/serialization/map.hpp:24,
                 from ./mlpack/prereqs.hpp:91,
                 from ./mlpack/core.hpp:67,
                 from ./rcpp_mlpack.h:53,
                 from adaboost.cpp:7:
C:/RLibrary/4.0/BH/include/boost/smart_ptr/shared_ptr.hpp:256:65: warning: 'template<class> class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
 template< class T, class R > struct sp_enable_if_auto_ptr< std::auto_ptr< T >, R >
                                                                 ^~~~~~~~
In file included from C:/rtools40/mingw32/include/c++/8.3.0/bits/locale_conv.h:41,
                 from C:/rtools40/mingw32/include/c++/8.3.0/locale:43,
                 from C:/rtools40/mingw32/include/c++/8.3.0/iomanip:43,
                 from C:/RLibrary/4.0/Rcpp/include/RcppCommon.h:52,
                 from C:/RLibrary/4.0/Rcpp/include/Rcpp.h:27,
                 from ./rcpp_mlpack.h:30,
                 from adaboost.cpp:7:
C:/rtools40/mingw32/include/c++/8.3.0/bits/unique_ptr.h:53:28: note: declared here
   template<typename> class auto_ptr;
                            ^~~~~~~~
In file included from C:/RLibrary/4.0/BH/include/boost/archive/detail/helper_collection.hpp:27,
                 from C:/RLibrary/4.0/BH/include/boost/archive/detail/basic_iarchive.hpp:28,
                 from C:/RLibrary/4.0/BH/include/boost/serialization/map.hpp:24,
                 from ./mlpack/prereqs.hpp:91,
                 from ./mlpack/core.hpp:67,
                 from ./rcpp_mlpack.h:53,
                 from adaboost.cpp:7:
C:/RLibrary/4.0/BH/include/boost/smart_ptr/shared_ptr.hpp:471:31: warning: 'template<class> class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
     explicit shared_ptr( std::auto_ptr<Y> & r ): px(r.get()), pn()
                               ^~~~~~~~
In file included from C:/rtools40/mingw32/include/c++/8.3.0/bits/locale_conv.h:41,
                 from C:/rtools40/mingw32/include/c++/8.3.0/locale:43,
                 from C:/rtools40/mingw32/include/c++/8.3.0/iomanip:43,
                 from C:/RLibrary/4.0/Rcpp/include/RcppCommon.h:52,
                 from C:/RLibrary/4.0/Rcpp/include/Rcpp.h:27,
                 from ./rcpp_mlpack.h:30,
                 from adaboost.cpp:7:
C:/rtools40/mingw32/include/c++/8.3.0/bits/unique_ptr.h:53:28: note: declared here
   template<typename> class auto_ptr;
                            ^~~~~~~~
In file included from C:/RLibrary/4.0/BH/include/boost/archive/detail/helper_collection.hpp:27,
                 from C:/RLibrary/4.0/BH/include/boost/archive/detail/basic_iarchive.hpp:28,
                 from C:/RLibrary/4.0/BH/include/boost/serialization/map.hpp:24,
                 from ./mlpack/prereqs.hpp:91,
                 from ./mlpack/core.hpp:67,
                 from ./rcpp_mlpack.h:53,
                 from adaboost.cpp:7:
C:/RLibrary/4.0/BH/include/boost/smart_ptr/shared_ptr.hpp:484:22: warning: 'template<class> class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
     shared_ptr( std::auto_ptr<Y> && r ): px(r.get()), pn()
                      ^~~~~~~~
In file included from C:/rtools40/mingw32/include/c++/8.3.0/bits/locale_conv.h:41,
                 from C:/rtools40/mingw32/include/c++/8.3.0/locale:43,
                 from C:/rtools40/mingw32/include/c++/8.3.0/iomanip:43,
                 from C:/RLibrary/4.0/Rcpp/include/RcppCommon.h:52,
                 from C:/RLibrary/4.0/Rcpp/include/Rcpp.h:27,
                 from ./rcpp_mlpack.h:30,
                 from adaboost.cpp:7:
C:/rtools40/mingw32/include/c++/8.3.0/bits/unique_ptr.h:53:28: note: declared here
   template<typename> class auto_ptr;
                            ^~~~~~~~
In file included from C:/RLibrary/4.0/BH/include/boost/archive/detail/helper_collection.hpp:27,
                 from C:/RLibrary/4.0/BH/include/boost/archive/detail/basic_iarchive.hpp:28,
                 from C:/RLibrary/4.0/BH/include/boost/serialization/map.hpp:24,
                 from ./mlpack/prereqs.hpp:91,
                 from ./mlpack/core.hpp:67,
                 from ./rcpp_mlpack.h:53,
                 from adaboost.cpp:7:
C:/RLibrary/4.0/BH/include/boost/smart_ptr/shared_ptr.hpp:567:34: warning: 'template<class> class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
     shared_ptr & operator=( std::auto_ptr<Y> & r )
                                  ^~~~~~~~
In file included from C:/rtools40/mingw32/include/c++/8.3.0/bits/locale_conv.h:41,
                 from C:/rtools40/mingw32/include/c++/8.3.0/locale:43,
                 from C:/rtools40/mingw32/include/c++/8.3.0/iomanip:43,
                 from C:/RLibrary/4.0/Rcpp/include/RcppCommon.h:52,
                 from C:/RLibrary/4.0/Rcpp/include/Rcpp.h:27,
                 from ./rcpp_mlpack.h:30,
                 from adaboost.cpp:7:
C:/rtools40/mingw32/include/c++/8.3.0/bits/unique_ptr.h:53:28: note: declared here
   template<typename> class auto_ptr;
                            ^~~~~~~~
In file included from C:/RLibrary/4.0/BH/include/boost/archive/detail/helper_collection.hpp:27,
                 from C:/RLibrary/4.0/BH/include/boost/archive/detail/basic_iarchive.hpp:28,
                 from C:/RLibrary/4.0/BH/include/boost/serialization/map.hpp:24,
                 from ./mlpack/prereqs.hpp:91,
                 from ./mlpack/core.hpp:67,
                 from ./rcpp_mlpack.h:53,
                 from adaboost.cpp:7:
C:/RLibrary/4.0/BH/include/boost/smart_ptr/shared_ptr.hpp:576:34: warning: 'template<class> class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
     shared_ptr & operator=( std::auto_ptr<Y> && r )
                                  ^~~~~~~~
In file included from C:/rtools40/mingw32/include/c++/8.3.0/bits/locale_conv.h:41,
                 from C:/rtools40/mingw32/include/c++/8.3.0/locale:43,
                 from C:/rtools40/mingw32/include/c++/8.3.0/iomanip:43,
                 from C:/RLibrary/4.0/Rcpp/include/RcppCommon.h:52,
                 from C:/RLibrary/4.0/Rcpp/include/Rcpp.h:27,
                 from ./rcpp_mlpack.h:30,
                 from adaboost.cpp:7:
C:/rtools40/mingw32/include/c++/8.3.0/bits/unique_ptr.h:53:28: note: declared here
   template<typename> class auto_ptr;
                            ^~~~~~~~
In file included from C:/RLibrary/4.0/BH/include/boost/archive/detail/helper_collection.hpp:27,
                 from C:/RLibrary/4.0/BH/include/boost/archive/detail/basic_iarchive.hpp:28,
                 from C:/RLibrary/4.0/BH/include/boost/serialization/map.hpp:24,
                 from ./mlpack/prereqs.hpp:91,
                 from ./mlpack/core.hpp:67,
                 from ./rcpp_mlpack.h:53,
                 from adaboost.cpp:7:
C:/RLibrary/4.0/BH/include/boost/smart_ptr/shared_ptr.hpp: In member function 'boost::shared_ptr<T>& boost::shared_ptr<T>::operator=(std::auto_ptr<_Up>&&)':
C:/RLibrary/4.0/BH/include/boost/smart_ptr/shared_ptr.hpp:578:38: warning: 'template<class> class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
         this_type( static_cast< std::auto_ptr<Y> && >( r ) ).swap( *this );
                                      ^~~~~~~~
In file included from C:/rtools40/mingw32/include/c++/8.3.0/bits/locale_conv.h:41,
                 from C:/rtools40/mingw32/include/c++/8.3.0/locale:43,
                 from C:/rtools40/mingw32/include/c++/8.3.0/iomanip:43,
                 from C:/RLibrary/4.0/Rcpp/include/RcppCommon.h:52,
                 from C:/RLibrary/4.0/Rcpp/include/Rcpp.h:27,
                 from ./rcpp_mlpack.h:30,
                 from adaboost.cpp:7:
C:/rtools40/mingw32/include/c++/8.3.0/bits/unique_ptr.h:53:28: note: declared here
   template<typename> class auto_ptr;
                            ^~~~~~~~
In file included from C:/RLibrary/4.0/BH/include/boost/serialization/version.hpp:20,
                 from C:/RLibrary/4.0/BH/include/boost/serialization/collections_save_imp.hpp:25,
                 from C:/RLibrary/4.0/BH/include/boost/serialization/map.hpp:32,
                 from ./mlpack/prereqs.hpp:91,
                 from ./mlpack/core.hpp:67,
                 from ./rcpp_mlpack.h:53,
                 from adaboost.cpp:7:
C:/RLibrary/4.0/BH/include/boost/mpl/assert.hpp: At global scope:
C:/RLibrary/4.0/BH/include/boost/mpl/assert.hpp:194:21: warning: unnecessary parentheses in declaration of 'assert_arg' [-Wparentheses]
 failed ************ (Pred::************
                     ^
C:/RLibrary/4.0/BH/include/boost/mpl/assert.hpp:199:21: warning: unnecessary parentheses in declaration of 'assert_not_arg' [-Wparentheses]
 failed ************ (boost::mpl::not_<Pred>::************
                     ^
In file included from ./mlpack/prereqs.hpp:125,
                 from ./mlpack/core.hpp:67,
                 from ./rcpp_mlpack.h:53,
                 from adaboost.cpp:7:
./mlpack/core/util/arma_config_check.hpp:31:21: note: #pragma message: mlpack was compiled with ARMA_64BIT_WORD, but you are compiling without ARMA_64BIT_WORD.  This will almost certainly cause irreparable disaster.  Either enable ARMA_64BIT_WORD in your application which is using mlpack, or, recompile mlpack against a version of Armadillo which has ARMA_64BIT_WORD disabled.
     #pragma message "mlpack was compiled with ARMA_64BIT_WORD, but you are \
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 compiling without ARMA_64BIT_WORD.  This will almost certainly cause \
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 irreparable disaster.  Either enable ARMA_64BIT_WORD in your application which \
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 is using mlpack, or, recompile mlpack against a version of Armadillo which has \
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 ARMA_64BIT_WORD disabled."
 ~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from C:/RLibrary/4.0/BH/include/boost/bind/mem_fn.hpp:25,
                 from C:/RLibrary/4.0/BH/include/boost/mem_fn.hpp:22,
                 from C:/RLibrary/4.0/BH/include/boost/function/detail/prologue.hpp:18,
                 from C:/RLibrary/4.0/BH/include/boost/function.hpp:30,
                 from C:/RLibrary/4.0/BH/include/boost/algorithm/string/detail/find_iterator.hpp:18,
                 from C:/RLibrary/4.0/BH/include/boost/algorithm/string/find_iterator.hpp:24,
                 from C:/RLibrary/4.0/BH/include/boost/algorithm/string/iter_find.hpp:27,
                 from C:/RLibrary/4.0/BH/include/boost/algorithm/string/split.hpp:16,
                 from C:/RLibrary/4.0/BH/include/boost/algorithm/string.hpp:23,
                 from ./mlpack/core/data/load_model_impl.hpp:29,
                 from ./mlpack/core/data/load.hpp:400,
                 from ./mlpack/core/util/cli_impl.hpp:19,
                 from ./mlpack/core/util/cli.hpp:341,
                 from ./mlpack/core.hpp:72,
                 from ./rcpp_mlpack.h:53,
                 from adaboost.cpp:7:
C:/RLibrary/4.0/BH/include/boost/get_pointer.hpp:48:40: warning: 'template<class> class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
 template<class T> T * get_pointer(std::auto_ptr<T> const& p)
                                        ^~~~~~~~
In file included from C:/rtools40/mingw32/include/c++/8.3.0/bits/locale_conv.h:41,
                 from C:/rtools40/mingw32/include/c++/8.3.0/locale:43,
                 from C:/rtools40/mingw32/include/c++/8.3.0/iomanip:43,
                 from C:/RLibrary/4.0/Rcpp/include/RcppCommon.h:52,
                 from C:/RLibrary/4.0/Rcpp/include/Rcpp.h:27,
                 from ./rcpp_mlpack.h:30,
                 from adaboost.cpp:7:
C:/rtools40/mingw32/include/c++/8.3.0/bits/unique_ptr.h:53:28: note: declared here
   template<typename> class auto_ptr;
                            ^~~~~~~~
"c:/rtools40/mingw32/bin/"g++  -std=gnu++11 -I"C:/R/include" -DNDEBUG  -I'C:/RLibrary/4.0/Rcpp/include' -I'C:/RLibrary/4.0/RcppArmadillo/include' -I'C:/RLibrary/4.0/BH/include' -I'C:/RLibrary/4.0/RcppEnsmallen/include'     -I. -fopenmp   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign -c approx_kfn.cpp -o approx_kfn.o
In file included from C:/RLibrary/4.0/BH/include/boost/scoped_ptr.hpp:13,
                 from C:/RLibrary/4.0/BH/include/boost/archive/detail/basic_iarchive.hpp:23,
                 from C:/RLibrary/4.0/BH/include/boost/serialization/map.hpp:24,
                 from ./mlpack/prereqs.hpp:91,
                 from ./mlpack/core.hpp:67,
                 from ./rcpp_mlpack.h:53,
                 from approx_kfn.cpp:7:
C:/RLibrary/4.0/BH/include/boost/smart_ptr/scoped_ptr.hpp:74:31: warning: 'template<class> class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
     explicit scoped_ptr( std::auto_ptr<T> p ) BOOST_SP_NOEXCEPT : px( p.release() )
                               ^~~~~~~~
In file included from C:/rtools40/mingw32/include/c++/8.3.0/bits/locale_conv.h:41,
                 from C:/rtools40/mingw32/include/c++/8.3.0/locale:43,
                 from C:/rtools40/mingw32/include/c++/8.3.0/iomanip:43,
                 from C:/RLibrary/4.0/Rcpp/include/RcppCommon.h:52,
                 from C:/RLibrary/4.0/Rcpp/include/Rcpp.h:27,
                 from ./rcpp_mlpack.h:30,
                 from approx_kfn.cpp:7:
C:/rtools40/mingw32/include/c++/8.3.0/bits/unique_ptr.h:53:28: note: declared here
   template<typename> class auto_ptr;
                            ^~~~~~~~
In file included from C:/RLibrary/4.0/BH/include/boost/smart_ptr/shared_ptr.hpp:28,
                 from C:/RLibrary/4.0/BH/include/boost/archive/detail/helper_collection.hpp:27,
                 from C:/RLibrary/4.0/BH/include/boost/archive/detail/basic_iarchive.hpp:28,
                 from C:/RLibrary/4.0/BH/include/boost/serialization/map.hpp:24,
                 from ./mlpack/prereqs.hpp:91,
                 from ./mlpack/core.hpp:67,
                 from ./rcpp_mlpack.h:53,
                 from approx_kfn.cpp:7:
C:/RLibrary/4.0/BH/include/boost/smart_ptr/detail/shared_count.hpp:356:33: warning: 'template<class> class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
     explicit shared_count( std::auto_ptr<Y> & r ): pi_( new sp_counted_impl_p<Y>( r.get() ) )
                                 ^~~~~~~~
In file included from C:/rtools40/mingw32/include/c++/8.3.0/bits/locale_conv.h:41,
                 from C:/rtools40/mingw32/include/c++/8.3.0/locale:43,
                 from C:/rtools40/mingw32/include/c++/8.3.0/iomanip:43,
                 from C:/RLibrary/4.0/Rcpp/include/RcppCommon.h:52,
                 from C:/RLibrary/4.0/Rcpp/include/Rcpp.h:27,
                 from ./rcpp_mlpack.h:30,
                 from approx_kfn.cpp:7:
C:/rtools40/mingw32/include/c++/8.3.0/bits/unique_ptr.h:53:28: note: declared here
   template<typename> class auto_ptr;
                            ^~~~~~~~
In file included from C:/RLibrary/4.0/BH/include/boost/archive/detail/helper_collection.hpp:27,
                 from C:/RLibrary/4.0/BH/include/boost/archive/detail/basic_iarchive.hpp:28,
                 from C:/RLibrary/4.0/BH/include/boost/serialization/map.hpp:24,
                 from ./mlpack/prereqs.hpp:91,
                 from ./mlpack/core.hpp:67,
                 from ./rcpp_mlpack.h:53,
                 from approx_kfn.cpp:7:
C:/RLibrary/4.0/BH/include/boost/smart_ptr/shared_ptr.hpp:256:65: warning: 'template<class> class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
 template< class T, class R > struct sp_enable_if_auto_ptr< std::auto_ptr< T >, R >
                                                                 ^~~~~~~~
In file included from C:/rtools40/mingw32/include/c++/8.3.0/bits/locale_conv.h:41,
                 from C:/rtools40/mingw32/include/c++/8.3.0/locale:43,
                 from C:/rtools40/mingw32/include/c++/8.3.0/iomanip:43,
                 from C:/RLibrary/4.0/Rcpp/include/RcppCommon.h:52,
                 from C:/RLibrary/4.0/Rcpp/include/Rcpp.h:27,
                 from ./rcpp_mlpack.h:30,
                 from approx_kfn.cpp:7:
C:/rtools40/mingw32/include/c++/8.3.0/bits/unique_ptr.h:53:28: note: declared here
   template<typename> class auto_ptr;
                            ^~~~~~~~
In file included from C:/RLibrary/4.0/BH/include/boost/archive/detail/helper_collection.hpp:27,
                 from C:/RLibrary/4.0/BH/include/boost/archive/detail/basic_iarchive.hpp:28,
                 from C:/RLibrary/4.0/BH/include/boost/serialization/map.hpp:24,
                 from ./mlpack/prereqs.hpp:91,
                 from ./mlpack/core.hpp:67,
                 from ./rcpp_mlpack.h:53,
                 from approx_kfn.cpp:7:
C:/RLibrary/4.0/BH/include/boost/smart_ptr/shared_ptr.hpp:471:31: warning: 'template<class> class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
     explicit shared_ptr( std::auto_ptr<Y> & r ): px(r.get()), pn()
                               ^~~~~~~~
In file included from C:/rtools40/mingw32/include/c++/8.3.0/bits/locale_conv.h:41,
                 from C:/rtools40/mingw32/include/c++/8.3.0/locale:43,
                 from C:/rtools40/mingw32/include/c++/8.3.0/iomanip:43,
                 from C:/RLibrary/4.0/Rcpp/include/RcppCommon.h:52,
                 from C:/RLibrary/4.0/Rcpp/include/Rcpp.h:27,
                 from ./rcpp_mlpack.h:30,
                 from approx_kfn.cpp:7:
C:/rtools40/mingw32/include/c++/8.3.0/bits/unique_ptr.h:53:28: note: declared here
   template<typename> class auto_ptr;
                            ^~~~~~~~
In file included from C:/RLibrary/4.0/BH/include/boost/archive/detail/helper_collection.hpp:27,
                 from C:/RLibrary/4.0/BH/include/boost/archive/detail/basic_iarchive.hpp:28,
                 from C:/RLibrary/4.0/BH/include/boost/serialization/map.hpp:24,
                 from ./mlpack/prereqs.hpp:91,
                 from ./mlpack/core.hpp:67,
                 from ./rcpp_mlpack.h:53,
                 from approx_kfn.cpp:7:
C:/RLibrary/4.0/BH/include/boost/smart_ptr/shared_ptr.hpp:484:22: warning: 'template<class> class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
     shared_ptr( std::auto_ptr<Y> && r ): px(r.get()), pn()
                      ^~~~~~~~
In file included from C:/rtools40/mingw32/include/c++/8.3.0/bits/locale_conv.h:41,
                 from C:/rtools40/mingw32/include/c++/8.3.0/locale:43,
                 from C:/rtools40/mingw32/include/c++/8.3.0/iomanip:43,
                 from C:/RLibrary/4.0/Rcpp/include/RcppCommon.h:52,
                 from C:/RLibrary/4.0/Rcpp/include/Rcpp.h:27,
                 from ./rcpp_mlpack.h:30,
                 from approx_kfn.cpp:7:
C:/rtools40/mingw32/include/c++/8.3.0/bits/unique_ptr.h:53:28: note: declared here
   template<typename> class auto_ptr;
                            ^~~~~~~~
In file included from C:/RLibrary/4.0/BH/include/boost/archive/detail/helper_collection.hpp:27,
                 from C:/RLibrary/4.0/BH/include/boost/archive/detail/basic_iarchive.hpp:28,
                 from C:/RLibrary/4.0/BH/include/boost/serialization/map.hpp:24,
                 from ./mlpack/prereqs.hpp:91,
                 from ./mlpack/core.hpp:67,
                 from ./rcpp_mlpack.h:53,
                 from approx_kfn.cpp:7:
C:/RLibrary/4.0/BH/include/boost/smart_ptr/shared_ptr.hpp:567:34: warning: 'template<class> class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
     shared_ptr & operator=( std::auto_ptr<Y> & r )
                                  ^~~~~~~~
In file included from C:/rtools40/mingw32/include/c++/8.3.0/bits/locale_conv.h:41,
                 from C:/rtools40/mingw32/include/c++/8.3.0/locale:43,
                 from C:/rtools40/mingw32/include/c++/8.3.0/iomanip:43,
                 from C:/RLibrary/4.0/Rcpp/include/RcppCommon.h:52,
                 from C:/RLibrary/4.0/Rcpp/include/Rcpp.h:27,
                 from ./rcpp_mlpack.h:30,
                 from approx_kfn.cpp:7:
C:/rtools40/mingw32/include/c++/8.3.0/bits/unique_ptr.h:53:28: note: declared here
   template<typename> class auto_ptr;
                            ^~~~~~~~
In file included from C:/RLibrary/4.0/BH/include/boost/archive/detail/helper_collection.hpp:27,
                 from C:/RLibrary/4.0/BH/include/boost/archive/detail/basic_iarchive.hpp:28,
                 from C:/RLibrary/4.0/BH/include/boost/serialization/map.hpp:24,
                 from ./mlpack/prereqs.hpp:91,
                 from ./mlpack/core.hpp:67,
                 from ./rcpp_mlpack.h:53,
                 from approx_kfn.cpp:7:
C:/RLibrary/4.0/BH/include/boost/smart_ptr/shared_ptr.hpp:576:34: warning: 'template<class> class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
     shared_ptr & operator=( std::auto_ptr<Y> && r )
                                  ^~~~~~~~
In file included from C:/rtools40/mingw32/include/c++/8.3.0/bits/locale_conv.h:41,
                 from C:/rtools40/mingw32/include/c++/8.3.0/locale:43,
                 from C:/rtools40/mingw32/include/c++/8.3.0/iomanip:43,
                 from C:/RLibrary/4.0/Rcpp/include/RcppCommon.h:52,
                 from C:/RLibrary/4.0/Rcpp/include/Rcpp.h:27,
                 from ./rcpp_mlpack.h:30,
                 from approx_kfn.cpp:7:
C:/rtools40/mingw32/include/c++/8.3.0/bits/unique_ptr.h:53:28: note: declared here
   template<typename> class auto_ptr;
                            ^~~~~~~~
In file included from C:/RLibrary/4.0/BH/include/boost/archive/detail/helper_collection.hpp:27,
                 from C:/RLibrary/4.0/BH/include/boost/archive/detail/basic_iarchive.hpp:28,
                 from C:/RLibrary/4.0/BH/include/boost/serialization/map.hpp:24,
                 from ./mlpack/prereqs.hpp:91,
                 from ./mlpack/core.hpp:67,
                 from ./rcpp_mlpack.h:53,
                 from approx_kfn.cpp:7:
C:/RLibrary/4.0/BH/include/boost/smart_ptr/shared_ptr.hpp: In member function 'boost::shared_ptr<T>& boost::shared_ptr<T>::operator=(std::auto_ptr<_Up>&&)':
C:/RLibrary/4.0/BH/include/boost/smart_ptr/shared_ptr.hpp:578:38: warning: 'template<class> class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
         this_type( static_cast< std::auto_ptr<Y> && >( r ) ).swap( *this );
                                      ^~~~~~~~
In file included from C:/rtools40/mingw32/include/c++/8.3.0/bits/locale_conv.h:41,
                 from C:/rtools40/mingw32/include/c++/8.3.0/locale:43,
                 from C:/rtools40/mingw32/include/c++/8.3.0/iomanip:43,
                 from C:/RLibrary/4.0/Rcpp/include/RcppCommon.h:52,
                 from C:/RLibrary/4.0/Rcpp/include/Rcpp.h:27,
                 from ./rcpp_mlpack.h:30,
                 from approx_kfn.cpp:7:
C:/rtools40/mingw32/include/c++/8.3.0/bits/unique_ptr.h:53:28: note: declared here
   template<typename> class auto_ptr;
                            ^~~~~~~~
In file included from C:/RLibrary/4.0/BH/include/boost/serialization/version.hpp:20,
                 from C:/RLibrary/4.0/BH/include/boost/serialization/collections_save_imp.hpp:25,
                 from C:/RLibrary/4.0/BH/include/boost/serialization/map.hpp:32,
                 from ./mlpack/prereqs.hpp:91,
                 from ./mlpack/core.hpp:67,
                 from ./rcpp_mlpack.h:53,
                 from approx_kfn.cpp:7:
C:/RLibrary/4.0/BH/include/boost/mpl/assert.hpp: At global scope:
C:/RLibrary/4.0/BH/include/boost/mpl/assert.hpp:194:21: warning: unnecessary parentheses in declaration of 'assert_arg' [-Wparentheses]
 failed ************ (Pred::************
                     ^
C:/RLibrary/4.0/BH/include/boost/mpl/assert.hpp:199:21: warning: unnecessary parentheses in declaration of 'assert_not_arg' [-Wparentheses]
 failed ************ (boost::mpl::not_<Pred>::************
                     ^
In file included from ./mlpack/prereqs.hpp:125,
                 from ./mlpack/core.hpp:67,
                 from ./rcpp_mlpack.h:53,
                 from approx_kfn.cpp:7:
./mlpack/core/util/arma_config_check.hpp:31:21: note: #pragma message: mlpack was compiled with ARMA_64BIT_WORD, but you are compiling without ARMA_64BIT_WORD.  This will almost certainly cause irreparable disaster.  Either enable ARMA_64BIT_WORD in your application which is using mlpack, or, recompile mlpack against a version of Armadillo which has ARMA_64BIT_WORD disabled.
     #pragma message "mlpack was compiled with ARMA_64BIT_WORD, but you are \
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 compiling without ARMA_64BIT_WORD.  This will almost certainly cause \
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 irreparable disaster.  Either enable ARMA_64BIT_WORD in your application which \
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 is using mlpack, or, recompile mlpack against a version of Armadillo which has \
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 ARMA_64BIT_WORD disabled."
 ~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from C:/RLibrary/4.0/BH/include/boost/bind/mem_fn.hpp:25,
                 from C:/RLibrary/4.0/BH/include/boost/mem_fn.hpp:22,
                 from C:/RLibrary/4.0/BH/include/boost/function/detail/prologue.hpp:18,
                 from C:/RLibrary/4.0/BH/include/boost/function.hpp:30,
                 from C:/RLibrary/4.0/BH/include/boost/algorithm/string/detail/find_iterator.hpp:18,
                 from C:/RLibrary/4.0/BH/include/boost/algorithm/string/find_iterator.hpp:24,
                 from C:/RLibrary/4.0/BH/include/boost/algorithm/string/iter_find.hpp:27,
                 from C:/RLibrary/4.0/BH/include/boost/algorithm/string/split.hpp:16,
                 from C:/RLibrary/4.0/BH/include/boost/algorithm/string.hpp:23,
                 from ./mlpack/core/data/load_model_impl.hpp:29,
                 from ./mlpack/core/data/load.hpp:400,
                 from ./mlpack/core/util/cli_impl.hpp:19,
                 from ./mlpack/core/util/cli.hpp:341,
                 from ./mlpack/core.hpp:72,
                 from ./rcpp_mlpack.h:53,
                 from approx_kfn.cpp:7:
C:/RLibrary/4.0/BH/include/boost/get_pointer.hpp:48:40: warning: 'template<class> class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
 template<class T> T * get_pointer(std::auto_ptr<T> const& p)
                                        ^~~~~~~~
In file included from C:/rtools40/mingw32/include/c++/8.3.0/bits/locale_conv.h:41,
                 from C:/rtools40/mingw32/include/c++/8.3.0/locale:43,
                 from C:/rtools40/mingw32/include/c++/8.3.0/iomanip:43,
                 from C:/RLibrary/4.0/Rcpp/include/RcppCommon.h:52,
                 from C:/RLibrary/4.0/Rcpp/include/Rcpp.h:27,
                 from ./rcpp_mlpack.h:30,
                 from approx_kfn.cpp:7:
C:/rtools40/mingw32/include/c++/8.3.0/bits/unique_ptr.h:53:28: note: declared here
   template<typename> class auto_ptr;
                            ^~~~~~~~
"c:/rtools40/mingw32/bin/"g++  -std=gnu++11 -I"C:/R/include" -DNDEBUG  -I'C:/RLibrary/4.0/Rcpp/include' -I'C:/RLibrary/4.0/RcppArmadillo/include' -I'C:/RLibrary/4.0/BH/include' -I'C:/RLibrary/4.0/RcppEnsmallen/include'     -I. -fopenmp   -O2 -Wall  -mfpmath=sse -msse2 -mstackrealign -c cf.cpp -o cf.o
In file included from C:/RLibrary/4.0/BH/include/boost/scoped_ptr.hpp:13,
                 from C:/RLibrary/4.0/BH/include/boost/archive/detail/basic_iarchive.hpp:23,
                 from C:/RLibrary/4.0/BH/include/boost/serialization/map.hpp:24,
                 from ./mlpack/prereqs.hpp:91,
                 from ./mlpack/core.hpp:67,
                 from ./rcpp_mlpack.h:53,
                 from cf.cpp:7:
C:/RLibrary/4.0/BH/include/boost/smart_ptr/scoped_ptr.hpp:74:31: warning: 'template<class> class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
     explicit scoped_ptr( std::auto_ptr<T> p ) BOOST_SP_NOEXCEPT : px( p.release() )
                               ^~~~~~~~
In file included from C:/rtools40/mingw32/include/c++/8.3.0/bits/locale_conv.h:41,
                 from C:/rtools40/mingw32/include/c++/8.3.0/locale:43,
                 from C:/rtools40/mingw32/include/c++/8.3.0/iomanip:43,
                 from C:/RLibrary/4.0/Rcpp/include/RcppCommon.h:52,
                 from C:/RLibrary/4.0/Rcpp/include/Rcpp.h:27,
                 from ./rcpp_mlpack.h:30,
                 from cf.cpp:7:
C:/rtools40/mingw32/include/c++/8.3.0/bits/unique_ptr.h:53:28: note: declared here
   template<typename> class auto_ptr;
                            ^~~~~~~~
In file included from C:/RLibrary/4.0/BH/include/boost/smart_ptr/shared_ptr.hpp:28,
                 from C:/RLibrary/4.0/BH/include/boost/archive/detail/helper_collection.hpp:27,
                 from C:/RLibrary/4.0/BH/include/boost/archive/detail/basic_iarchive.hpp:28,
                 from C:/RLibrary/4.0/BH/include/boost/serialization/map.hpp:24,
                 from ./mlpack/prereqs.hpp:91,
                 from ./mlpack/core.hpp:67,
                 from ./rcpp_mlpack.h:53,
                 from cf.cpp:7:
C:/RLibrary/4.0/BH/include/boost/smart_ptr/detail/shared_count.hpp:356:33: warning: 'template<class> class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
     explicit shared_count( std::auto_ptr<Y> & r ): pi_( new sp_counted_impl_p<Y>( r.get() ) )
                                 ^~~~~~~~
In file included from C:/rtools40/mingw32/include/c++/8.3.0/bits/locale_conv.h:41,
                 from C:/rtools40/mingw32/include/c++/8.3.0/locale:43,
                 from C:/rtools40/mingw32/include/c++/8.3.0/iomanip:43,
                 from C:/RLibrary/4.0/Rcpp/include/RcppCommon.h:52,
                 from C:/RLibrary/4.0/Rcpp/include/Rcpp.h:27,
                 from ./rcpp_mlpack.h:30,
                 from cf.cpp:7:
C:/rtools40/mingw32/include/c++/8.3.0/bits/unique_ptr.h:53:28: note: declared here
   template<typename> class auto_ptr;
                            ^~~~~~~~
In file included from C:/RLibrary/4.0/BH/include/boost/archive/detail/helper_collection.hpp:27,
                 from C:/RLibrary/4.0/BH/include/boost/archive/detail/basic_iarchive.hpp:28,
                 from C:/RLibrary/4.0/BH/include/boost/serialization/map.hpp:24,
                 from ./mlpack/prereqs.hpp:91,
                 from ./mlpack/core.hpp:67,
                 from ./rcpp_mlpack.h:53,
                 from cf.cpp:7:
C:/RLibrary/4.0/BH/include/boost/smart_ptr/shared_ptr.hpp:256:65: warning: 'template<class> class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
 template< class T, class R > struct sp_enable_if_auto_ptr< std::auto_ptr< T >, R >
                                                                 ^~~~~~~~
In file included from C:/rtools40/mingw32/include/c++/8.3.0/bits/locale_conv.h:41,
                 from C:/rtools40/mingw32/include/c++/8.3.0/locale:43,
                 from C:/rtools40/mingw32/include/c++/8.3.0/iomanip:43,
                 from C:/RLibrary/4.0/Rcpp/include/RcppCommon.h:52,
                 from C:/RLibrary/4.0/Rcpp/include/Rcpp.h:27,
                 from ./rcpp_mlpack.h:30,
                 from cf.cpp:7:
C:/rtools40/mingw32/include/c++/8.3.0/bits/unique_ptr.h:53:28: note: declared here
   template<typename> class auto_ptr;
                            ^~~~~~~~
In file included from C:/RLibrary/4.0/BH/include/boost/archive/detail/helper_collection.hpp:27,
                 from C:/RLibrary/4.0/BH/include/boost/archive/detail/basic_iarchive.hpp:28,
                 from C:/RLibrary/4.0/BH/include/boost/serialization/map.hpp:24,
                 from ./mlpack/prereqs.hpp:91,
                 from ./mlpack/core.hpp:67,
                 from ./rcpp_mlpack.h:53,
                 from cf.cpp:7:
C:/RLibrary/4.0/BH/include/boost/smart_ptr/shared_ptr.hpp:471:31: warning: 'template<class> class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
     explicit shared_ptr( std::auto_ptr<Y> & r ): px(r.get()), pn()
                               ^~~~~~~~
In file included from C:/rtools40/mingw32/include/c++/8.3.0/bits/locale_conv.h:41,
                 from C:/rtools40/mingw32/include/c++/8.3.0/locale:43,
                 from C:/rtools40/mingw32/include/c++/8.3.0/iomanip:43,
                 from C:/RLibrary/4.0/Rcpp/include/RcppCommon.h:52,
                 from C:/RLibrary/4.0/Rcpp/include/Rcpp.h:27,
                 from ./rcpp_mlpack.h:30,
                 from cf.cpp:7:
C:/rtools40/mingw32/include/c++/8.3.0/bits/unique_ptr.h:53:28: note: declared here
   template<typename> class auto_ptr;
                            ^~~~~~~~
In file included from C:/RLibrary/4.0/BH/include/boost/archive/detail/helper_collection.hpp:27,
                 from C:/RLibrary/4.0/BH/include/boost/archive/detail/basic_iarchive.hpp:28,
                 from C:/RLibrary/4.0/BH/include/boost/serialization/map.hpp:24,
                 from ./mlpack/prereqs.hpp:91,
                 from ./mlpack/core.hpp:67,
                 from ./rcpp_mlpack.h:53,
                 from cf.cpp:7:
C:/RLibrary/4.0/BH/include/boost/smart_ptr/shared_ptr.hpp:484:22: warning: 'template<class> class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
     shared_ptr( std::auto_ptr<Y> && r ): px(r.get()), pn()
                      ^~~~~~~~
In file included from C:/rtools40/mingw32/include/c++/8.3.0/bits/locale_conv.h:41,
                 from C:/rtools40/mingw32/include/c++/8.3.0/locale:43,
                 from C:/rtools40/mingw32/include/c++/8.3.0/iomanip:43,
                 from C:/RLibrary/4.0/Rcpp/include/RcppCommon.h:52,
                 from C:/RLibrary/4.0/Rcpp/include/Rcpp.h:27,
                 from ./rcpp_mlpack.h:30,
                 from cf.cpp:7:
C:/rtools40/mingw32/include/c++/8.3.0/bits/unique_ptr.h:53:28: note: declared here
   template<typename> class auto_ptr;
                            ^~~~~~~~
In file included from C:/RLibrary/4.0/BH/include/boost/archive/detail/helper_collection.hpp:27,
                 from C:/RLibrary/4.0/BH/include/boost/archive/detail/basic_iarchive.hpp:28,
                 from C:/RLibrary/4.0/BH/include/boost/serialization/map.hpp:24,
                 from ./mlpack/prereqs.hpp:91,
                 from ./mlpack/core.hpp:67,
                 from ./rcpp_mlpack.h:53,
                 from cf.cpp:7:
C:/RLibrary/4.0/BH/include/boost/smart_ptr/shared_ptr.hpp:567:34: warning: 'template<class> class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
     shared_ptr & operator=( std::auto_ptr<Y> & r )
                                  ^~~~~~~~
In file included from C:/rtools40/mingw32/include/c++/8.3.0/bits/locale_conv.h:41,
                 from C:/rtools40/mingw32/include/c++/8.3.0/locale:43,
                 from C:/rtools40/mingw32/include/c++/8.3.0/iomanip:43,
                 from C:/RLibrary/4.0/Rcpp/include/RcppCommon.h:52,
                 from C:/RLibrary/4.0/Rcpp/include/Rcpp.h:27,
                 from ./rcpp_mlpack.h:30,
                 from cf.cpp:7:
C:/rtools40/mingw32/include/c++/8.3.0/bits/unique_ptr.h:53:28: note: declared here
   template<typename> class auto_ptr;
                            ^~~~~~~~
In file included from C:/RLibrary/4.0/BH/include/boost/archive/detail/helper_collection.hpp:27,
                 from C:/RLibrary/4.0/BH/include/boost/archive/detail/basic_iarchive.hpp:28,
                 from C:/RLibrary/4.0/BH/include/boost/serialization/map.hpp:24,
                 from ./mlpack/prereqs.hpp:91,
                 from ./mlpack/core.hpp:67,
                 from ./rcpp_mlpack.h:53,
                 from cf.cpp:7:
C:/RLibrary/4.0/BH/include/boost/smart_ptr/shared_ptr.hpp:576:34: warning: 'template<class> class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
     shared_ptr & operator=( std::auto_ptr<Y> && r )
                                  ^~~~~~~~
In file included from C:/rtools40/mingw32/include/c++/8.3.0/bits/locale_conv.h:41,
                 from C:/rtools40/mingw32/include/c++/8.3.0/locale:43,
                 from C:/rtools40/mingw32/include/c++/8.3.0/iomanip:43,
                 from C:/RLibrary/4.0/Rcpp/include/RcppCommon.h:52,
                 from C:/RLibrary/4.0/Rcpp/include/Rcpp.h:27,
                 from ./rcpp_mlpack.h:30,
                 from cf.cpp:7:
C:/rtools40/mingw32/include/c++/8.3.0/bits/unique_ptr.h:53:28: note: declared here
   template<typename> class auto_ptr;
                            ^~~~~~~~
In file included from C:/RLibrary/4.0/BH/include/boost/archive/detail/helper_collection.hpp:27,
                 from C:/RLibrary/4.0/BH/include/boost/archive/detail/basic_iarchive.hpp:28,
                 from C:/RLibrary/4.0/BH/include/boost/serialization/map.hpp:24,
                 from ./mlpack/prereqs.hpp:91,
                 from ./mlpack/core.hpp:67,
                 from ./rcpp_mlpack.h:53,
                 from cf.cpp:7:
C:/RLibrary/4.0/BH/include/boost/smart_ptr/shared_ptr.hpp: In member function 'boost::shared_ptr<T>& boost::shared_ptr<T>::operator=(std::auto_ptr<_Up>&&)':
C:/RLibrary/4.0/BH/include/boost/smart_ptr/shared_ptr.hpp:578:38: warning: 'template<class> class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
         this_type( static_cast< std::auto_ptr<Y> && >( r ) ).swap( *this );
                                      ^~~~~~~~
In file included from C:/rtools40/mingw32/include/c++/8.3.0/bits/locale_conv.h:41,
                 from C:/rtools40/mingw32/include/c++/8.3.0/locale:43,
                 from C:/rtools40/mingw32/include/c++/8.3.0/iomanip:43,
                 from C:/RLibrary/4.0/Rcpp/include/RcppCommon.h:52,
                 from C:/RLibrary/4.0/Rcpp/include/Rcpp.h:27,
                 from ./rcpp_mlpack.h:30,
                 from cf.cpp:7:
C:/rtools40/mingw32/include/c++/8.3.0/bits/unique_ptr.h:53:28: note: declared here
   template<typename> class auto_ptr;
                            ^~~~~~~~
In file included from C:/RLibrary/4.0/BH/include/boost/serialization/version.hpp:20,
                 from C:/RLibrary/4.0/BH/include/boost/serialization/collections_save_imp.hpp:25,
                 from C:/RLibrary/4.0/BH/include/boost/serialization/map.hpp:32,
                 from ./mlpack/prereqs.hpp:91,
                 from ./mlpack/core.hpp:67,
                 from ./rcpp_mlpack.h:53,
                 from cf.cpp:7:
C:/RLibrary/4.0/BH/include/boost/mpl/assert.hpp: At global scope:
C:/RLibrary/4.0/BH/include/boost/mpl/assert.hpp:194:21: warning: unnecessary parentheses in declaration of 'assert_arg' [-Wparentheses]
 failed ************ (Pred::************
                     ^
C:/RLibrary/4.0/BH/include/boost/mpl/assert.hpp:199:21: warning: unnecessary parentheses in declaration of 'assert_not_arg' [-Wparentheses]
 failed ************ (boost::mpl::not_<Pred>::************
                     ^
In file included from ./mlpack/prereqs.hpp:125,
                 from ./mlpack/core.hpp:67,
                 from ./rcpp_mlpack.h:53,
                 from cf.cpp:7:
./mlpack/core/util/arma_config_check.hpp:31:21: note: #pragma message: mlpack was compiled with ARMA_64BIT_WORD, but you are compiling without ARMA_64BIT_WORD.  This will almost certainly cause irreparable disaster.  Either enable ARMA_64BIT_WORD in your application which is using mlpack, or, recompile mlpack against a version of Armadillo which has ARMA_64BIT_WORD disabled.
     #pragma message "mlpack was compiled with ARMA_64BIT_WORD, but you are \
                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 compiling without ARMA_64BIT_WORD.  This will almost certainly cause \
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 irreparable disaster.  Either enable ARMA_64BIT_WORD in your application which \
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 is using mlpack, or, recompile mlpack against a version of Armadillo which has \
 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
 ARMA_64BIT_WORD disabled."
 ~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from C:/RLibrary/4.0/BH/include/boost/bind/mem_fn.hpp:25,
                 from C:/RLibrary/4.0/BH/include/boost/mem_fn.hpp:22,
                 from C:/RLibrary/4.0/BH/include/boost/function/detail/prologue.hpp:18,
                 from C:/RLibrary/4.0/BH/include/boost/function.hpp:30,
                 from C:/RLibrary/4.0/BH/include/boost/algorithm/string/detail/find_iterator.hpp:18,
                 from C:/RLibrary/4.0/BH/include/boost/algorithm/string/find_iterator.hpp:24,
                 from C:/RLibrary/4.0/BH/include/boost/algorithm/string/iter_find.hpp:27,
                 from C:/RLibrary/4.0/BH/include/boost/algorithm/string/split.hpp:16,
                 from C:/RLibrary/4.0/BH/include/boost/algorithm/string.hpp:23,
                 from ./mlpack/core/data/load_model_impl.hpp:29,
                 from ./mlpack/core/data/load.hpp:400,
                 from ./mlpack/core/util/cli_impl.hpp:19,
                 from ./mlpack/core/util/cli.hpp:341,
                 from ./mlpack/core.hpp:72,
                 from ./rcpp_mlpack.h:53,
                 from cf.cpp:7:
C:/RLibrary/4.0/BH/include/boost/get_pointer.hpp:48:40: warning: 'template<class> class std::auto_ptr' is deprecated [-Wdeprecated-declarations]
 template<class T> T * get_pointer(std::auto_ptr<T> const& p)
                                        ^~~~~~~~
In file included from C:/rtools40/mingw32/include/c++/8.3.0/bits/locale_conv.h:41,
                 from C:/rtools40/mingw32/include/c++/8.3.0/locale:43,
                 from C:/rtools40/mingw32/include/c++/8.3.0/iomanip:43,
                 from C:/RLibrary/4.0/Rcpp/include/RcppCommon.h:52,
                 from C:/RLibrary/4.0/Rcpp/include/Rcpp.h:27,
                 from ./rcpp_mlpack.h:30,
                 from cf.cpp:7:
C:/rtools40/mingw32/include/c++/8.3.0/bits/unique_ptr.h:53:28: note: declared here
   template<typename> class auto_ptr;
                            ^~~~~~~~

cc1plus.exe: out of memory allocating 248528 bytes
make: *** [C:/R/etc/i386/Makeconf:229: cf.o] Error 1
ERROR: compilation failed for package 'RcppMLPACK'
* removing 'C:/projects/rcppmlpack/RcppMLPACK.Rcheck/RcppMLPACK'

I do not really use Appveyor (go GitHub Actions!). That said, on TravisCI, I would frequently set the following build environment flags:

env:	
  global:	
  - MAKEFLAGS="-j 2"	
  - R_BUILD_ARGS="--no-build-vignettes"	
  - R_CHECK_ARGS="--no-build-vignettes"	
  - _R_CHECK_FORCE_SUGGESTS=0	

where MAKEFLAGS is the number of CPUs used to compile.

@rcurtin
Copy link
Collaborator

rcurtin commented Jul 4, 2020

Is it actually necessary to include <mlpack/core.hpp> (and other parts of mlpack)? Maybe I am thinking something that's not appropriate to this specific repository, but for each of the bindings, we should only have to include a couple headers and actually not include mlpack directly. This is because each of the individual bindings is compiled into its own .so object with an mlpackMain() function, and then from the R side we would only need to include the definition of that mlpackMain() function.

However, I am not sure if that applies to this repository---if this build timeout is not from the auto-generated bindings but instead from the hand-maintained RcppMLPACK package, then what I wrote above doesn't apply. (It should, however, apply to the bindings we generate by the time the summer is over, thus meaning that we shouldn't have build time or memory issues... I hope!)

@eddelbuettel
Copy link
Collaborator

Just ran it locally (after again increasting Version: in DESCRIPTION to get a distinct tarball, as I have done before).

Tests very cleanly. Nice work. I get I set of warnings (tickmarks from rcmdcheck::rcmdcheck() use):

✔  checking for sufficient/correct file permissions
✔  checking serialization versions ...
W  checking whether package ‘RcppMLPACK’ can be installed (2.8s)
   Found the following significant warnings:       
     ./mlpack/core/data/load_impl.hpp:116:30: warning: ‘static arma::file_type arma::diskio::guess_file_type(std::istream&)’ is deprecated [-Wdeprecated-declarations]
     ./mlpack/core/data/load_impl.hpp:116:52: warning: ‘static arma::file_type arma::diskio::guess_file_type(std::istream&)’ is deprecated [-Wdeprecated-declarations]
     ./mlpack/core/data/load_impl.hpp:180:32: warning: ‘static arma::file_type arma::diskio::guess_file_type(std::istream&)’ is deprecated [-Wdeprecated-declarations]
     ./mlpack/core/data/load_impl.hpp:180:54: warning: ‘static arma::file_type arma::diskio::guess_file_type(std::istream&)’ is deprecated [-Wdeprecated-declarations]
     ./mlpack/core/data/load_impl.hpp:116:45: warning: ‘static arma::file_type arma::diskio::guess_file_type(std::istream&)’ is deprecated [-Wdeprecated-declarations]
     ./mlpack/core/data/load_impl.hpp:180:47: warning: ‘static arma::file_type arma::diskio::guess_file_type(std::istream&)’ is deprecated [-Wdeprecated-declarations]
   See ‘/tmp/file2b76b946f6ad43/RcppMLPACK.Rcheck/00install.out’ for details.
✔  checking installed package size         
✔  checking package directory ...     

Is that me? Is my MLPACK version too old or is that something we should look into?

The rest is spotless. Very nice to see!

@Yashwants19
Copy link
Owner Author

Just ran it locally (after again increasting Version: in DESCRIPTION to get a distinct tarball, as I have done before).

Did you check, over this PR(branch) or master branch? Sorry I didn't mention this earlier, but earlier I mistakenly push these changes to master, then again revert these changes from master and make a PR with a new branch with these changes.

Is that me? Is my MLPACK version too old or is that something we should look into?

I think so these warning are because MLPACK is still supporting Armadillo 8.400.0, and we are using latest Armadillo.

@eddelbuettel
Copy link
Collaborator

eddelbuettel commented Jul 5, 2020

master -- my bad. I did check recent activity in it and that distracted me. I should have paid more attention.

Now building in the slightly irregularly named 'Lets-try-auto-generated' (that is at least very descriptive ;-) ) that I was famililar from based on the traffic here. Seems like it takes a moment to build. Are we building MLPACK each time?

[ To be continued... ]

[ Holy crap it is still building. Only the package to build vignettes. You are one patient man. I could not develop this way. ]

Eventually finished and can get tested at which point my use of ccache helps quite a bit. The size issue may be a concern for CRAN:

✔  checking for portable file names ...                                                                  
✔  checking for sufficient/correct file permissions                                                      
─  checking whether package ‘RcppMLPACK’ can be installed ... [342s/319s] WARNING (5m 19.9s)             
   Found the following significant warnings:                                                             
     ./mlpack/core/data/load_impl.hpp:123:30: warning: ‘static arma::file_type arma::diskio::guess_file_type(std::istream&)’ is deprecated [-Wdeprecated-declarations]                                             
     ./mlpack/core/data/load_impl.hpp:123:52: warning: ‘static arma::file_type arma::diskio::guess_file_type(std::istream&)’ is deprecated [-Wdeprecated-declarations]                                             
     ./mlpack/core/data/load_impl.hpp:187:32: warning: ‘static arma::file_type arma::diskio::guess_file_type(std::istream&)’ is deprecated [-Wdeprecated-declarations]                                             
     ./mlpack/core/data/load_impl.hpp:187:54: warning: ‘static arma::file_type arma::diskio::guess_file_type(std::istream&)’ is deprecated [-Wdeprecated-declarations]                                             
     ./mlpack/core/data/load_impl.hpp:123:45: warning: ‘static arma::file_type arma::diskio::guess_file_type(std::istream&)’ is deprecated [-Wdeprecated-declarations]                                             
     ./mlpack/core/data/load_impl.hpp:187:47: warning: ‘static arma::file_type arma::diskio::guess_file_type(std::istream&)’ is deprecated [-Wdeprecated-declarations]                                             
     ./mlpack/methods/decision_stump/decision_stump_main.cpp:165:65: warning: ‘double mlpack::decision_stump::DecisionStump<MatType>::Train(const MatType&, const arma::Row<long unsigned int>&, size_t, size_t) [w
ith MatType = arma::Mat<double>; size_t = long unsigned int]’ is deprecated [-Wdeprecated-declarations]
     ./mlpack/methods/decision_stump/decision_stump_main.cpp:186:55: warning: ‘void mlpack::decision_stump::DecisionStump<MatType>::Classify(const MatType&, arma::Row<long unsigned int>&) [with MatType = arma::M
at<double>]’ is deprecated [-Wdeprecated-declarations]                                                   
   See ‘/tmp/file2e58ea5567dfc6/RcppMLPACK.Rcheck/00install.out’ for details.
N  checking installed package size ...   
     installed size is 42.8Mb                
     sub-directories of 1Mb or more:               
       libs  42.4Mb                                                                                      
✔  checking package directory ...                                                                        
✔  checking ‘build’ directory     

and these docs I guess we can write (or better still, derive?)

✔  checking R code for possible problems (2.2s)                                                          
✔  checking Rd files ...
W  checking Rd metadata ...
   Rd files with duplicated alias 'RcppMLPACK':
     ‘RcppMLPACK-package.Rd’ ‘RcppMLPACK.Rd’                                                             
✔  checking Rd cross-references ...
W  checking for missing documentation entries ...
   Undocumented code objects:
     ‘adaboost’ ‘approx_kfn’ ‘cf’ ‘dbscan’ ‘decision_stump’
     ‘decision_tree’ ‘det’ ‘emst’ ‘fastmks’ ‘gmm_generate’
     ‘gmm_probability’ ‘gmm_train’ ‘hmm_generate’ ‘hmm_loglik’ ‘hmm_train’
     ‘hmm_viterbi’ ‘hoeffding_tree’ ‘image_converter’ ‘kde’ ‘kernel_pca’
     ‘kfn’ ‘kmeans’ ‘knn’ ‘krann’ ‘lars’ ‘linear_regression’ ‘linear_svm’
     ‘lmnn’ ‘local_coordinate_coding’ ‘logistic_regression’ ‘lsh’
     ‘mean_shift’ ‘nbc’ ‘nca’ ‘nmf’ ‘pca’ ‘perceptron’
     ‘preprocess_binarize’ ‘preprocess_describe’ ‘preprocess_scale’
     ‘preprocess_split’ ‘radical’ ‘random_forest’ ‘range_search’
     ‘softmax_regression’ ‘sparse_coding’ ‘test_r_binding’
   All user-level objects in a package should have documentation entries.
   See chapter ‘Writing R documentation files’ in the ‘Writing R
   Extensions’ manual.
✔  checking for code/documentation mismatches (747ms)
✔  checking Rd \usage sections (600ms)
✔  checking Rd contents ...

But it builds and that is Yuge. Congrats.

@rcurtin
Copy link
Collaborator

rcurtin commented Jul 5, 2020

Is that me? Is my MLPACK version too old or is that something we should look into?

I think so these warning are because MLPACK is still supporting Armadillo 8.400.0, and we are using latest Armadillo.

Feel free to adapt the implementation of Load() and submit a patch upstream, but it doesn't look like the warnings are hugely problematic anyway.

@eddelbuettel
Copy link
Collaborator

but it doesn't look like the warnings are hugely problematic anyway

With appropriate flags to g++ it gets quieter. I'll file a separate issue.

@Yashwants19
Copy link
Owner Author

Eventually finished and can get tested at which point my use of ccache helps quite a bit. The size issue may be a concern for CRAN:

I was also having the same concern, Should we have to strip the shared-library, or we can manage this issue in some other way?

and these docs I guess we can write (or better still, derive?)

Yeah, this is my next goal for this week.

@@ -15,8 +15,18 @@
#ifndef MLPACK_CORE_UTIL_ARMA_CONFIG_HPP
#define MLPACK_CORE_UTIL_ARMA_CONFIG_HPP

#define MLPACK_ARMA_NO64BIT_WORD
#ifdef ARMA_64BIT_WORD
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This file is auto-generated while building mlpack, and this file is system dependent. But we are building the binding using R and not cmake, Hence we have to take care of this file on our own. I have tried to config this, please guide me whether my approach is correct or not.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Right, the only reason this file exists is to warn the user if they compiled libmlpack.so with ARMA_64BIT_WORD set but are now compiling something against libmlpack.so without that define set (or vice versa). But since we are compiling everything with R, all at once, at the time that install.packages() is called (or similar), then this situation isn't possible. To be honest, I think that you could work around it by leaving the file as-is, and then simply "cheating" and doing

#define MLPACK_CORE_ARMA_UTIL_CONFIG_HPP

in RcppMLPACK.h before including mlpack/core.hpp or another mlpack header. That way, when this file is encountered, it will simply be skipped. This way, we avoid displaying any spurious warnings, and you don't need to do any modification of mlpack's sources. 👍

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, sounds legit. Many moons ago we also sorted the (simpler) case of alwasy calling (Rcpp)Armadillo headers before Rcpp headers. We control the space and build---so we can just define as needed.

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is working great thank you. I will also update this in the main(Yashwants19/mlpack) repository.

@eddelbuettel
Copy link
Collaborator

Minor note: you also removed cleanup which is sometimes helpful to have esp when developing from a source dir. Not "technically" related to configure{,.ac}. But removing configure should simplify things.

@Yashwants19
Copy link
Owner Author

I have added cleanup again.

Copy link
Collaborator

@rcurtin rcurtin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure if you're waiting for me to approve this one, but at least from my end it looks good. However, @eddelbuettel is the R expert, not me, so he may have some additional comments. 😃

@eddelbuettel
Copy link
Collaborator

Looks like I ran it days ago as my checkout was current (apart from the belated c542914) . Will run it once more now but I think we can proceed...

@eddelbuettel
Copy link
Collaborator

Yes thumbs up. R CMD check --as-cran ... comes up with a few small things but they can be (and are ?) addressed in other PRs as eg the documentation issue.

So thumbs up.

Copy link
Collaborator

@coatless coatless left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's make sure this gets included

@Yashwants19
Copy link
Owner Author

Okay lets merge this.

@Yashwants19 Yashwants19 merged commit 2d256c0 into master Jul 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants