Re: [R-pkg-devel] How ton print in the console from Rcpp

2022-10-20 Thread Elysée Aristide
Thank you very much for your answers. I finally noticed that the issue comes from the numerical optimization, in which I use the class MFuncGrad of the package RcppNumerical. Is there any problem in using this class? This is the only way I know to compute integrals of perform numerical

Re: [R-pkg-devel] How ton print in the console from Rcpp

2022-10-20 Thread Dirk Eddelbuettel
On 20 October 2022 at 14:46, Ivan Krylov wrote: | В Thu, 20 Oct 2022 12:43:30 +0200 | Elysée Aristide пишет: | | > What I understood is that it is better to use Rcpp functions. So I | > used: | > | > Rcpp::Rcout << "beta: \n"; | > Rcpp::print(betacpp); | > Rcpp::Rcout << "log-likelihood: " <<

Re: [R-pkg-devel] How ton print in the console from Rcpp

2022-10-20 Thread Ivan Krylov
В Thu, 20 Oct 2022 12:43:30 +0200 Elysée Aristide пишет: > What I understood is that it is better to use Rcpp functions. So I > used: > > Rcpp::Rcout << "beta: \n"; > Rcpp::print(betacpp); > Rcpp::Rcout << "log-likelihood: " << llh << "\n"; This seems to be a right way of printing from Rcpp

Re: [R-pkg-devel] How ton print in the console from Rcpp

2022-10-20 Thread Iñaki Ucar
Hi, On Thu, 20 Oct 2022 at 12:42, Elysée Aristide wrote: > > Greetings, > > In my CDatanet package, I want to print texts and values during a numerical > optimization process. I saw in many posts that CRAN is not happy with > sd::cout and sd::endl. What I understood is that it is better to use

[R-pkg-devel] How ton print in the console from Rcpp

2022-10-20 Thread Elysée Aristide
Greetings, In my CDatanet package, I want to print texts and values during a numerical optimization process. I saw in many posts that CRAN is not happy with sd::cout and sd::endl. What I understood is that it is better to use Rcpp functions. So I used: Rcpp::Rcout << "beta: \n";

Re: [R-pkg-devel] Error when install binary from CRAN but not if install from source - Macintosh, lme4, Matrix, buildmer

2022-10-20 Thread Martin Maechler
> Duncan Murdoch > on Wed, 19 Oct 2022 14:55:24 -0400 writes: > It seems that this could be mostly avoided if instead of caching copies > of Matrix methods when buildmer was installed, R would cache promises to > get those methods. Then if the method for some

Re: [R-pkg-devel] R package build- C compilation issue related to math.h

2022-10-20 Thread Ivan Krylov
On Wed, 19 Oct 2022 23:39:57 +0100 Vincent Plagnol wrote: > gcc-12 -I"/home/hornik/tmp/R/include" -DNDEBUG -I/usr/local/include > -DUSE_TYPE_CHECKING_STRICT -D_FORTIFY_SOURCE=2 -fpic -g -O2 -Wall > -Wstrict-prototypes -pedantic -mtune=native -c VP_gamma.c -o > VP_gamma.o >