From 4a22772df3e33e116ec86d556c322a4d033652d6 Mon Sep 17 00:00:00 2001 From: Dirk Eddelbuettel Date: Mon, 5 Sep 2022 07:44:52 -0500 Subject: [PATCH] Update RcppArmadillo initialization This one-line change updates RcppArmadillo from the now deprecated << initialization to brace initialization allowed since C++11 and long been minimal standard with R too -- and which you already had, albeit commented out. It would be great if you could merge this, and release and updated package "in the next little while" -- see the two prior emails I sent, and the transition log at RcppCore/RcppArmadillo#391 --- src/finite_moment_test.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/finite_moment_test.cpp b/src/finite_moment_test.cpp index 8b703cb..b38bc7d 100644 --- a/src/finite_moment_test.cpp +++ b/src/finite_moment_test.cpp @@ -407,9 +407,7 @@ arma::vec finite_moment_test(arma::vec obs, } // Return - //arma::vec return_values = {Theta, chisq1_percentile}; - arma::vec return_values(2); - return_values << Theta << chisq1_percentile; + arma::vec return_values({Theta, chisq1_percentile}); return(return_values); }