-
Notifications
You must be signed in to change notification settings - Fork 56
Open
Description
As another example of a simple package that
- neither depends on or enforces C++11 but simply uses the newest C++ standard available
- but triggers two very simple deprecation warnings that are easily addressed (see below)
we show the CRAN package RcppSMC.
Example of default compilation before any changes: falls back to 14.6.3 with warning
edd@paul:~/git/rcppsmc(master)$ install.r
* installing *source* package found in current working directory ...
* installing *source* package ‘RcppSMC’ ... ** this is package ‘RcppSMC’ version ‘0.2.8’
** using staged installation
** libs
using C++ compiler: ‘g++ (Ubuntu 14.2.0-19ubuntu2) 14.2.0’ ccache g++ -I"/usr/share/R/include" -DNDEBUG -I../inst/include -I'/usr/local/lib/R/site-library/Rcpp/include' -I'/usr/local/lib/R/site-library/RcppArmadillo/include' -fpic -O3 -Wall -pipe -pedantic -Wno-par
entheses -Wno-ignored-attributes -Wno-unused-function -c LinReg.cpp -o LinReg.o
ccache g++ -I"/usr/share/R/include" -DNDEBUG -I../inst/include -I'/usr/local/lib/R/site-library/Rcpp/include' -I'/usr/local/lib/R/site-library/RcppArmadillo/include' -fpic -O3 -Wall -pipe -pedantic -Wno-par
entheses -Wno-ignored-attributes -Wno-unused-function -c LinReg_LA.cpp -o LinReg_LA.o
ccache g++ -I"/usr/share/R/include" -DNDEBUG -I../inst/include -I'/usr/local/lib/R/site-library/Rcpp/include' -I'/usr/local/lib/R/site-library/RcppArmadillo/include' -fpic -O3 -Wall -pipe -pedantic -Wno-par
entheses -Wno-ignored-attributes -Wno-unused-function -c LinReg_LA_adapt.cpp -o LinReg_LA_adapt.o
ccache g++ -I"/usr/share/R/include" -DNDEBUG -I../inst/include -I'/usr/local/lib/R/site-library/Rcpp/include' -I'/usr/local/lib/R/site-library/RcppArmadillo/include' -fpic -O3 -Wall -pipe -pedantic -Wno-par
entheses -Wno-ignored-attributes -Wno-unused-function -c RcppExports.cpp -o RcppExports.o
ccache g++ -I"/usr/share/R/include" -DNDEBUG -I../inst/include -I'/usr/local/lib/R/site-library/Rcpp/include' -I'/usr/local/lib/R/site-library/RcppArmadillo/include' -fpic -O3 -Wall -pipe -pedantic -Wno-par
entheses -Wno-ignored-attributes -Wno-unused-function -c blockpfgaussianopt.cpp -o blockpfgaussianopt.o
ccache g++ -I"/usr/share/R/include" -DNDEBUG -I../inst/include -I'/usr/local/lib/R/site-library/Rcpp/include' -I'/usr/local/lib/R/site-library/RcppArmadillo/include' -fpic -O3 -Wall -pipe -pedantic -Wno-par
entheses -Wno-ignored-attributes -Wno-unused-function -c cSMCexamples.cpp -o cSMCexamples.o
ccache g++ -I"/usr/share/R/include" -DNDEBUG -I../inst/include -I'/usr/local/lib/R/site-library/Rcpp/include' -I'/usr/local/lib/R/site-library/RcppArmadillo/include' -fpic -O3 -Wall -pipe -pedantic -Wno-par
entheses -Wno-ignored-attributes -Wno-unused-function -c nonLinPMMH.cpp -o nonLinPMMH.o
ccache g++ -I"/usr/share/R/include" -DNDEBUG -I../inst/include -I'/usr/local/lib/R/site-library/Rcpp/include' -I'/usr/local/lib/R/site-library/RcppArmadillo/include' -fpic -O3 -Wall -pipe -pedantic -Wno-par
entheses -Wno-ignored-attributes -Wno-unused-function -c pflineart.cpp -o pflineart.o
ccache g++ -I"/usr/share/R/include" -DNDEBUG -I../inst/include -I'/usr/local/lib/R/site-library/Rcpp/include' -I'/usr/local/lib/R/site-library/RcppArmadillo/include' -fpic -O3 -Wall -pipe -pedantic -Wno-par
entheses -Wno-ignored-attributes -Wno-unused-function -c pfnonlinbs.cpp -o pfnonlinbs.o
In file included from /usr/local/lib/R/site-library/RcppArmadillo/include/RcppArmadillo.h:29, 07:24:25 [45/3227]
from ../inst/include/population.h:33,
from ../inst/include/sampler.h:37,
from ../inst/include/smctc.h:101,
from blockpfgaussianopt.cpp:24:
/usr/local/lib/R/site-library/RcppArmadillo/include/RcppArmadillo/version/arma.h:71:153: note: ‘#pragma message: Using fallback compilation with Armadillo 14.6.3. Please consider defining -DARMA_USE_CURRENT. See
GitHub issue #475 for more.’
71 | #pragma message("Using fallback compilation with Armadillo 14.6.3. Please consider defining -DARMA_USE_CURRENT. See GitHub issue #475 for more.")
| ^
In file included from /usr/local/lib/R/site-library/RcppArmadillo/include/RcppArmadillo.h:29,
from ../inst/include/population.h:33,
from ../inst/include/sampler.h:37,
from ../inst/include/smctc.h:101,
from ../inst/include/LinReg.h:23,
from LinReg.cpp:23:
/usr/local/lib/R/site-library/RcppArmadillo/include/RcppArmadillo/version/arma.h:71:153: note: ‘#pragma message: Using fallback compilation with Armadillo 14.6.3. Please consider defining -DARMA_USE_CURRENT. See
GitHub issue #475 for more.’
71 | #pragma message("Using fallback compilation with Armadillo 14.6.3. Please consider defining -DARMA_USE_CURRENT. See GitHub issue #475 for more.")
| ^
In file included from /usr/local/lib/R/site-library/RcppArmadillo/include/RcppArmadillo.h:29,
from ../inst/include/population.h:33,
from ../inst/include/sampler.h:37,
from ../inst/include/smctc.h:101,
from ../inst/include/LinReg_LA_adapt.h:25,
from LinReg_LA_adapt.cpp:25:
/usr/local/lib/R/site-library/RcppArmadillo/include/RcppArmadillo/version/arma.h:71:153: note: ‘#pragma message: Using fallback compilation with Armadillo 14.6.3. Please consider defining -DARMA_USE_CURRENT. See
GitHub issue #475 for more.’
71 | #pragma message("Using fallback compilation with Armadillo 14.6.3. Please consider defining -DARMA_USE_CURRENT. See GitHub issue #475 for more.")
| ^
In file included from /usr/local/lib/R/site-library/RcppArmadillo/include/RcppArmadillo.h:29,
from ../inst/include/population.h:33,
from ../inst/include/sampler.h:37,
from ../inst/include/smctc.h:101,
from ../inst/include/nonLinPMMH.h:24,
from nonLinPMMH.cpp:24:
/usr/local/lib/R/site-library/RcppArmadillo/include/RcppArmadillo/version/arma.h:71:153: note: ‘#pragma message: Using fallback compilation with Armadillo 14.6.3. Please consider defining -DARMA_USE_CURRENT. See
GitHub issue #475 for more.’
71 | #pragma message("Using fallback compilation with Armadillo 14.6.3. Please consider defining -DARMA_USE_CURRENT. See GitHub issue #475 for more.")
| ^
In file included from /usr/local/lib/R/site-library/RcppArmadillo/include/RcppArmadillo.h:29,
from ../inst/include/population.h:33,
from ../inst/include/sampler.h:37,
from ../inst/include/smctc.h:101,
from ../inst/include/LinReg_LA.h:23,
from LinReg_LA.cpp:23:
/usr/local/lib/R/site-library/RcppArmadillo/include/RcppArmadillo/version/arma.h:71:153: note: ‘#pragma message: Using fallback compilation with Armadillo 14.6.3. Please consider defining -DARMA_USE_CURRENT. See
GitHub issue #475 for more.’
71 | #pragma message("Using fallback compilation with Armadillo 14.6.3. Please consider defining -DARMA_USE_CURRENT. See GitHub issue #475 for more.")
| ^
In file included from /usr/local/lib/R/site-library/RcppArmadillo/include/RcppArmadillo.h:29,
from pflineart.cpp:24:
/usr/local/lib/R/site-library/RcppArmadillo/include/RcppArmadillo/version/arma.h:71:153: note: ‘#pragma message: Using fallback compilation with Armadillo 14.6.3. Please consider defining -DARMA_USE_CURRENT. See
GitHub issue #475 for more.’
71 | #pragma message("Using fallback compilation with Armadillo 14.6.3. Please consider defining -DARMA_USE_CURRENT. See GitHub issue #475 for more.")
| ^
In file included from /usr/local/lib/R/site-library/RcppArmadillo/include/RcppArmadillo.h:29,
from ../inst/include/population.h:33,
from ../inst/include/sampler.h:37,
from ../inst/include/smctc.h:101,
from pfnonlinbs.cpp:29:
/usr/local/lib/R/site-library/RcppArmadillo/include/RcppArmadillo/version/arma.h:71:153: note: ‘#pragma message: Using fallback compilation with Armadillo 14.6.3. Please consider defining -DARMA_USE_CURRENT. See
GitHub issue #475 for more.’
71 | #pragma message("Using fallback compilation with Armadillo 14.6.3. Please consider defining -DARMA_USE_CURRENT. See GitHub issue #475 for more.")
| ^
In file included from /usr/local/lib/R/site-library/RcppArmadillo/include/RcppArmadillo.h:29,
from ../inst/include/RcppSMC.h:18,
from RcppExports.cpp:4:
/usr/local/lib/R/site-library/RcppArmadillo/include/RcppArmadillo/version/arma.h:71:153: note: ‘#pragma message: Using fallback compilation with Armadillo 14.6.3. Please consider defining -DARMA_USE_CURRENT. See
GitHub issue #475 for more.’
71 | #pragma message("Using fallback compilation with Armadillo 14.6.3. Please consider defining -DARMA_USE_CURRENT. See GitHub issue #475 for more.")
| ^
In file included from /usr/local/lib/R/site-library/RcppArmadillo/include/RcppArmadillo.h:29,
from ../inst/include/RcppSMC.h:18,
from ../inst/include/cSMCexamples.h:20,
from cSMCexamples.cpp:20:
/usr/local/lib/R/site-library/RcppArmadillo/include/RcppArmadillo/version/arma.h:71:153: note: ‘#pragma message: Using fallback compilation with Armadillo 14.6.3. Please consider defining -DARMA_USE_CURRENT. See
GitHub issue #475 for more.’
71 | #pragma message("Using fallback compilation with Armadillo 14.6.3. Please consider defining -DARMA_USE_CURRENT. See GitHub issue #475 for more.")
| ^
ccache g++ -Wl,-S -shared -L/usr/lib/R/lib -Wl,-Bsymbolic-functions -flto=auto -ffat-lto-objects -Wl,-z,relro -o RcppSMC.so LinReg.o LinReg_LA.o LinReg_LA_adapt.o RcppExports.o blockpfgaussianopt.o cSMCexamples.
o nonLinPMMH.o pflineart.o pfnonlinbs.o -llapack -lblas -lgfortran -lm -lquadmath -L/usr/lib/R/lib -lR
installing to /usr/local/lib/R/site-library/00LOCK-rcppsmc/00new/RcppSMC/libs
** R
** data
*** moving datasets to lazyload DB
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded from temporary location
** checking absolute paths in shared objects and dynamic libraries
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (RcppSMC)
edd@paul:~/git/rcppsmc(master)$
Example after adding -DARMA_USE_CURRENT
in src/Makevars{,.win}
to PKG_CXXFLAGS
: uses 15.0.1 with (simple) deprecation warnings
edd@paul:~/git/rcppsmc(master)$ install.r
* installing *source* package found in current working directory ...
* installing *source* package ‘RcppSMC’ ...
** this is package ‘RcppSMC’ version ‘0.2.8’
** using staged installation
** libs
using C++ compiler: ‘g++ (Ubuntu 14.2.0-19ubuntu2) 14.2.0’
ccache g++ -I"/usr/share/R/include" -DNDEBUG -I../inst/include -DARMA_USE_CURRENT -I'/usr/local/lib/R/site-library/Rcpp/include' -I'/usr/local/lib/R/site-library/RcppArmadillo/include' -fpic -O3 -Wall -pipe -pedantic -Wno-parentheses -Wno-ignored-attributes -Wno-unused-function -c LinReg.cpp -o LinReg.o
ccache g++ -I"/usr/share/R/include" -DNDEBUG -I../inst/include -DARMA_USE_CURRENT -I'/usr/local/lib/R/site-library/Rcpp/include' -I'/usr/local/lib/R/site-library/RcppArmadillo/include' -fpic -O3 -Wall -pipe -pedantic -Wno-parentheses -Wno-ignored-attributes -Wno-unused-function -c LinReg_LA.cpp -o LinReg_LA.o
ccache g++ -I"/usr/share/R/include" -DNDEBUG -I../inst/include -DARMA_USE_CURRENT -I'/usr/local/lib/R/site-library/Rcpp/include' -I'/usr/local/lib/R/site-library/RcppArmadillo/include' -fpic -O3 -Wall -pipe -pedantic -Wno-parentheses -Wno-ignored-attributes -Wno-unused-function -c LinReg_LA_adapt.cpp -o LinReg_LA_adapt.o
ccache g++ -I"/usr/share/R/include" -DNDEBUG -I../inst/include -DARMA_USE_CURRENT -I'/usr/local/lib/R/site-library/Rcpp/include' -I'/usr/local/lib/R/site-library/RcppArmadillo/include' -fpic -O3 -Wall -pipe -pedantic -Wno-parentheses -Wno-ignored-attributes -Wno-unused-function -c RcppExports.cpp -o RcppExports.o
ccache g++ -I"/usr/share/R/include" -DNDEBUG -I../inst/include -DARMA_USE_CURRENT -I'/usr/local/lib/R/site-library/Rcpp/include' -I'/usr/local/lib/R/site-library/RcppArmadillo/include' -fpic -O3 -Wall -pipe -pedantic -Wno-parentheses -Wno-ignored-attributes -Wno-unused-function -c blockpfgaussianopt.cpp -o blockpfgaussianopt.o
ccache g++ -I"/usr/share/R/include" -DNDEBUG -I../inst/include -DARMA_USE_CURRENT -I'/usr/local/lib/R/site-library/Rcpp/include' -I'/usr/local/lib/R/site-library/RcppArmadillo/include' -fpic -O3 -Wall -pipe -pedantic -Wno-parentheses -Wno-ignored-attributes -Wno-unused-function -c cSMCexamples.cpp -o cSMCexamples.o
ccache g++ -I"/usr/share/R/include" -DNDEBUG -I../inst/include -DARMA_USE_CURRENT -I'/usr/local/lib/R/site-library/Rcpp/include' -I'/usr/local/lib/R/site-library/RcppArmadillo/include' -fpic -O3 -Wall -pipe -pedantic -Wno-parentheses -Wno-ignored-attributes -Wno-unused-function -c nonLinPMMH.cpp -o nonLinPMMH.o
ccache g++ -I"/usr/share/R/include" -DNDEBUG -I../inst/include -DARMA_USE_CURRENT -I'/usr/local/lib/R/site-library/Rcpp/include' -I'/usr/local/lib/R/site-library/RcppArmadillo/include' -fpic -O3 -Wall -pipe -pedantic -Wno-parentheses -Wno-ignored-attributes -Wno-unused-function -c pflineart.cpp -o pflineart.o
ccache g++ -I"/usr/share/R/include" -DNDEBUG -I../inst/include -DARMA_USE_CURRENT -I'/usr/local/lib/R/site-library/Rcpp/include' -I'/usr/local/lib/R/site-library/RcppArmadillo/include' -fpic -O3 -Wall -pipe -pedantic -Wno-parentheses -Wno-ignored-attributes -Wno-unused-function -c pfnonlinbs.cpp -o pfnonlinbs.o
In file included from ../inst/include/RcppSMC.h:25,
from ../inst/include/cSMCexamples.h:20,
from cSMCexamples.cpp:20:
../inst/include/conditionalSampler.h: In instantiation of ‘void smc::conditionalSampler<Space, Params>::conditionalResample(ResampleType::Enum) [with Space = cSMCexamples::States; Params = smc::nullParams]’:
../inst/include/conditionalSampler.h:196:13: required from ‘void smc::conditionalSampler<Space, Params>::Initialise() [with Space = cSMCexamples::States; Params = smc::nullParams]’
196 | conditionalResample(rtResampleMode);
| ^~~~~~~~~~~~~~~~~~~
cSMCexamples.cpp:105:35: required from here
105 | cSamplerBPF.Initialise();
| ~~~~~~~~~~~~~~~~~~~~~~^~
../inst/include/conditionalSampler.h:476:58: warning: ‘static out_eT arma::conv_to<out_eT>::from(const arma::Base<eT2, expr>&, const typename arma::arma_not_cx<in_eT>::result*) [with in_eT = unsigned int; T1 = arma::mtOp<unsigned int, arma::mtOp<unsigned int, arma::subview_col<double>, arma::op_rel_gt_post>, arma::op_find>; out_eT = long int; typename arma::arma_not_cx<in_eT>::result = unsigned int]’ is deprecated: replace conv_to<...>::from(X) with as_scalar(X) [-Wdeprecated-declarations]
476 | minimalJ += arma::conv_to<long>::from(arma::find(dRSWeightsCumulative.tail(N - minimalJ) > tmpUnifRnd, 1, "first"));
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /usr/local/lib/R/site-library/RcppArmadillo/include/current/armadillo:496,
from /usr/local/lib/R/site-library/RcppArmadillo/include/RcppArmadillo/interface/RcppArmadilloForward.h:57,
from /usr/local/lib/R/site-library/RcppArmadillo/include/RcppArmadillo.h:32,
from ../inst/include/RcppSMC.h:18:
/usr/local/lib/R/site-library/RcppArmadillo/include/current/armadillo_bits/fn_conv_to.hpp:72:1: note: declared here
72 | conv_to<out_eT>::from(const Base<in_eT, T1>& in, const typename arma_not_cx<in_eT>::result* junk)
| ^~~~~~~~~~~~~~~
../inst/include/conditionalSampler.h:551:58: warning: ‘static out_eT arma::conv_to<out_eT>::from(const arma::Base<eT2, expr>&, const typename arma::arma_not_cx<in_eT>::result*) [with in_eT = unsigned int; T1 = arma::mtOp<unsigned int, arma::mtOp<unsigned int, arma::subview_col<double>, arma::op_rel_gt_post>, arma::op_find>; out_eT = long int; typename arma::arma_not_cx<in_eT>::result = unsigned int]’ is deprecated: replace conv_to<...>::from(X) with as_scalar(X) [-Wdeprecated-declarations]
551 | minimalJ += arma::conv_to<long>::from(arma::find(dRSWeightsCumulative.tail(N - minimalJ) > tmpU, 1, "first"));
| ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/usr/local/lib/R/site-library/RcppArmadillo/include/current/armadillo_bits/fn_conv_to.hpp:72:1: note: declared here
72 | conv_to<out_eT>::from(const Base<in_eT, T1>& in, const typename arma_not_cx<in_eT>::result* junk)
| ^~~~~~~~~~~~~~~
ccache g++ -Wl,-S -shared -L/usr/lib/R/lib -Wl,-Bsymbolic-functions -flto=auto -ffat-lto-objects -Wl,-z,relro -o RcppSMC.so LinReg.o LinReg_LA.o LinReg_LA_adapt.o RcppExports.o blockpfgaussianopt.o cSMCexamples.o nonLinPMMH.o pflineart.o pfnonlinbs.o -llapack -lblas -lgfortran -lm -lquadmath -L/usr/lib/R/lib -lR
installing to /usr/local/lib/R/site-library/00LOCK-rcppsmc/00new/RcppSMC/libs
** R
** data
*** moving datasets to lazyload DB
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded from temporary location
** checking absolute paths in shared objects and dynamic libraries
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (RcppSMC)
edd@paul:~/git/rcppsmc(master)$
We can make the simple two-line changes which, for this package, involve switching to arma::as_scalar()
in two places. After that change, no warnings are seen.
```sh
edd@paul:~/git/rcppsmc(master)$ ./cleanup
edd@paul:~/git/rcppsmc(master)$ install.r
* installing *source* package found in current working directory ...
* installing *source* package ‘RcppSMC’ ...
** this is package ‘RcppSMC’ version ‘0.2.8’
** using staged installation
** libs
using C++ compiler: ‘g++ (Ubuntu 14.2.0-19ubuntu2) 14.2.0’
ccache g++ -I"/usr/share/R/include" -DNDEBUG -I../inst/include -DARMA_USE_CURRENT -I'/usr/local/lib/R/site-library/Rcpp/include' -I'/usr/local/lib/R/site-library/RcppArmadillo/include' -fpic -O3 -Wall -pipe -pedantic -Wno-parentheses -Wno-ignored-attributes -Wno-unused-function -c LinReg.cpp -o LinReg.o
ccache g++ -I"/usr/share/R/include" -DNDEBUG -I../inst/include -DARMA_USE_CURRENT -I'/usr/local/lib/R/site-library/Rcpp/include' -I'/usr/local/lib/R/site-library/RcppArmadillo/include' -fpic -O3 -Wall -pipe -pedantic -Wno-parentheses -Wno-ignored-attributes -Wno-unused-function -c LinReg_LA.cpp -o LinReg_LA.o
ccache g++ -I"/usr/share/R/include" -DNDEBUG -I../inst/include -DARMA_USE_CURRENT -I'/usr/local/lib/R/site-library/Rcpp/include' -I'/usr/local/lib/R/site-library/RcppArmadillo/include' -fpic -O3 -Wall -pipe -pedantic -Wno-parentheses -Wno-ignored-attributes -Wno-unused-function -c LinReg_LA_adapt.cpp -o LinReg_LA_adapt.o
ccache g++ -I"/usr/share/R/include" -DNDEBUG -I../inst/include -DARMA_USE_CURRENT -I'/usr/local/lib/R/site-library/Rcpp/include' -I'/usr/local/lib/R/site-library/RcppArmadillo/include' -fpic -O3 -Wall -pipe -pedantic -Wno-parentheses -Wno-ignored-attributes -Wno-unused-function -c RcppExports.cpp -o RcppExports.o
ccache g++ -I"/usr/share/R/include" -DNDEBUG -I../inst/include -DARMA_USE_CURRENT -I'/usr/local/lib/R/site-library/Rcpp/include' -I'/usr/local/lib/R/site-library/RcppArmadillo/include' -fpic -O3 -Wall -pipe -pedantic -Wno-parentheses -Wno-ignored-attributes -Wno-unused-function -c blockpfgaussianopt.cpp -o blockpfgaussianopt.o
ccache g++ -I"/usr/share/R/include" -DNDEBUG -I../inst/include -DARMA_USE_CURRENT -I'/usr/local/lib/R/site-library/Rcpp/include' -I'/usr/local/lib/R/site-library/RcppArmadillo/include' -fpic -O3 -Wall -pipe -pedantic -Wno-parentheses -Wno-ignored-attributes -Wno-unused-function -c cSMCexamples.cpp -o cSMCexamples.o
ccache g++ -I"/usr/share/R/include" -DNDEBUG -I../inst/include -DARMA_USE_CURRENT -I'/usr/local/lib/R/site-library/Rcpp/include' -I'/usr/local/lib/R/site-library/RcppArmadillo/include' -fpic -O3 -Wall -pipe -pedantic -Wno-parentheses -Wno-ignored-attributes -Wno-unused-function -c nonLinPMMH.cpp -o nonLinPMMH.o
ccache g++ -I"/usr/share/R/include" -DNDEBUG -I../inst/include -DARMA_USE_CURRENT -I'/usr/local/lib/R/site-library/Rcpp/include' -I'/usr/local/lib/R/site-library/RcppArmadillo/include' -fpic -O3 -Wall -pipe -pedantic -Wno-parentheses -Wno-ignored-attributes -Wno-unused-function -c pflineart.cpp -o pflineart.o
ccache g++ -I"/usr/share/R/include" -DNDEBUG -I../inst/include -DARMA_USE_CURRENT -I'/usr/local/lib/R/site-library/Rcpp/include' -I'/usr/local/lib/R/site-library/RcppArmadillo/include' -fpic -O3 -Wall -pipe -pedantic -Wno-parentheses -Wno-ignored-attributes -Wno-unused-function -c pfnonlinbs.cpp -o pfnonlinbs.o
ccache g++ -Wl,-S -shared -L/usr/lib/R/lib -Wl,-Bsymbolic-functions -flto=auto -ffat-lto-objects -Wl,-z,relro -o RcppSMC.so LinReg.o LinReg_LA.o LinReg_LA_adapt.o RcppExports.o blockpfgaussianopt.o cSMCexamples.o nonLinPMMH.o pflineart.o pfnonlinbs.o -llapack -lblas -lgfortran -lm -lquadmath -L/usr/lib/R/lib -lR
installing to /usr/local/lib/R/site-library/00LOCK-rcppsmc/00new/RcppSMC/libs
** R
** data
*** moving datasets to lazyload DB
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded from temporary location
** checking absolute paths in shared objects and dynamic libraries
** testing if installed package can be loaded from final location
** testing if installed package keeps a record of temporary installation path
* DONE (RcppSMC)
edd@paul:~/git/rcppsmc(master)$
```
We also note that the changes have no effect when building under the preceding RcppArmadillo release 14.6.3 as the #define
is ignored, and the changed-to Armadillo function has been available for many releases (see e.g. GitHub actions for RcppSMC).
Metadata
Metadata
Assignees
Labels
No labels