[R-pkg-devel] Fix JFM package problem

2022-01-11 Thread riccardo
Hallo,

I wish to submit the following error rising running an example in a rcpp 
function *only *in Debian check:

> ### Name: least_square_plane_rcpp
> ### Title: returns the coefficients of the least square plane and the
> ###   relative medium square error
> ### Aliases: least_square_plane_rcpp
> 
> ### ** Examples
> 
> list_xyz<-matrix(data = c(-10.0, -10.0, -15.0 ,10.0, -10.0,
+  -5.0, -10.0, 10.0, 5.0, 10.0, 10.0 ,15.0)
+ ,nrow = 4,ncol = 3, byrow = TRUE)
> least_square_plane_rcpp(list_xyz)

warning: eig_sym(): given matrix is not symmetric
Error in least_square_plane_rcpp(list_xyz) :
   Mat::operator(): index out of bounds
Execution halted

This error raised also in window OS, but was fixed changing input 
variable in Rcpp::NumericMatrix.

Complete check is at:
https://win-builder.r-project.org/incoming_pretest/JFM_1.0_20220111_170553/Debian/00check.log

Every suggestion is welcome.

Thank you in advance

Best Regards

Riccardo

[[alternative HTML version deleted]]

__
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel


[R-pkg-devel] CRAN submission - Specified C++11

2023-02-27 Thread Riccardo Di Francesco
Dear R-developers,

I apologize if this issue has been already resolved, I could not find any
solution in your archives.

I recently submitted a package to CRAN. In the "src/Makevars" file I
put CXX_STD
= CXX11 to specify C++11 code. This causes my package to fail the automatic
checks, which raise the following note:

*"checking C++ specification ... NOTE*
* Specified C++11: please drop specification unless essential"*

Specifying C++11 is necessary to make my package work. How can I solve
this?

Best
-- 
*Riccardo Di Francesco*
Ph.D. candidate
Department of Economics and Finance
University of Rome Tor Vergata
Website <https://riccardo-df.github.io/>

[[alternative HTML version deleted]]

__
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel


Re: [R-pkg-devel] CRAN submission - Specified C++11

2023-02-27 Thread Riccardo Di Francesco
Thanks for the suggestions.
I will try to change the code.

Il giorno lun 27 feb 2023 alle ore 10:37 Duncan Murdoch <
murdoch.dun...@gmail.com> ha scritto:

> On 27/02/2023 4:25 a.m., Riccardo Di Francesco wrote:
> > Dear R-developers,
> >
> > I apologize if this issue has been already resolved, I could not find any
> > solution in your archives.
> >
> > I recently submitted a package to CRAN. In the "src/Makevars" file I
> > put CXX_STD
> > = CXX11 to specify C++11 code. This causes my package to fail the
> automatic
> > checks, which raise the following note:
> >
> > *"checking C++ specification ... NOTE*
> > * Specified C++11: please drop specification unless essential"*
> >
> > Specifying C++11 is necessary to make my package work. How can I solve
> > this?
>
> You could change the code so it will work in newer standards, but if
> that is not feasible, you need to write to CRAN and explain why you need
> this older standard.
>
> Duncan Murdoch
>
>

-- 
*Riccardo Di Francesco*
Ph.D. candidate
Department of Economics and Finance
University of Rome Tor Vergata
Website <https://riccardo-df.github.io/>

[[alternative HTML version deleted]]

__
R-package-devel@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-package-devel