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

2022-11-16 Thread Dirk Eddelbuettel
On 14 November 2022 at 16:34, Elysée Aristide wrote: | I was convinced that the issue is local. The warning message only appears | on MAC. | I did not try with another computer. I used CRAN macbuilder service and got | the warning message. I guess this is also the computer CRAN uses. Some

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

2022-11-14 Thread Elysée Aristide
Hello, I was convinced that the issue is local. The warning message only appears on MAC. I did not try with another computer. I used CRAN macbuilder service and got the warning message. I guess this is also the computer CRAN uses. Best regards, Aristide Elysée HOUNDETOUNGAN *Assistant Professor

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

2022-11-14 Thread Dirk Eddelbuettel
Ivan, Thanks for following-up but I think this issue is local to the OP as R is already setup exactly that way to skip `assert()` in builds (in perfect congruence with the CRAN Repository Policy) edd@rob:~$ grep NDEBUG /etc/R/Makeconf R_XTRA_CPPFLAGS = -I"$(R_INCLUDE_DIR)" -DNDEBUG

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

2022-11-14 Thread Ivan Krylov
В Sun, 13 Nov 2022 11:29:21 + Elysée Aristide пишет: > The only difference I saw is that all those packages put > > #define NDEBUG > > after #include . > I did the same thing without understanding :) Glad you got it working! If you're curious why it helped, see

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

2022-11-13 Thread Elysée Aristide
; r-package-devel@r-project.org Subject: Re: [R-pkg-devel] How ton print in the console from Rcpp On 20 October 2022 at 13:16, Elys�e Aristide wrote: | Thank you very much for your answers. | | I finally noticed that the issue comes from the numerical optimization, in which I use the class

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

2022-10-22 Thread Dirk Eddelbuettel
On 20 October 2022 at 13:16, Elysée Aristide wrote: | 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

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

2022-10-20 Thread Elysée Aristide
Aristide ; r-package-devel@r-project.org Subject: Re: [R-pkg-devel] How ton print in the console from Rcpp 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. S

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";