[R-pkg-devel] Fix JFM package problem

riccardo r|cc@r| @end|ng |rom hotm@||@|t
Sat Jan 22 12:40:25 CET 2022


Hallo,

I re-submitted the JFM package and the following error raised again running an example in a rcpp
function only in Debian check:

package JFM_1.0.tar.gz does not pass the incoming checks automatically, please see the following pre-tests:
Windows:<https://win-builder.r-project.org/incoming_pretest/JFM_1.0_20220122_111558/Windows/00check.log>
Status: 1 NOTE
Debian:<https://win-builder.r-project.org/incoming_pretest/JFM_1.0_20220122_111558/Debian/00check.log>
Status: 1 ERROR, 1 NOTE

Running examples in ‘JFM-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### 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

as you suggested I posted an issue with complete function code athttps://github.com/riccarl/JFM/issues/1

the correct result in windows is:

3.333333e-01  6.666667e-01 -6.666667e-01  0.000000e+00  6.280370e-16

Thank you in advance
Riccardo


	[[alternative HTML version deleted]]



More information about the R-package-devel mailing list