The problem is finally solved. A workflow of my steps is as following:
1- I tried the first approach of @r2evans but it didn't work,
2- According to the solution from @r2evans, @user2554330 , and @pat-s I removed the Microsoft-R,
3- I installed R-CRAN_4.3, R at this stage works on a default BLAS and LAPACK. Here is the output when using the default BLAS/LAPACK libraries on linux:
## Matrix products: default
## BLAS: /usr/lib/x86_64-linux-gnu/blas/libblas.so.3.7.1
## LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.7.1
however, to take advantage of the hardware and do multi-thread processing that had to be changed. There are several highly optimized libraries that can be used instead of the default base libraries. I mainly used THIS very interesting and easy to understand/implement approach from Dirk Eddelbuettel. Thus, I did step 4 as:
4- install MKL for .deb-based systems and integrated MKL,
5- removed all the previously installed packages,
6- reinstall all the dependencies and suggested libs mentioned in R-package/Description
,
7- run R CMD CHECK --as-CRAN and finally DONE!.
Note: If you (like me) don't know what the BLAS is, HERE is a very cool post about it.
Other sources that I used are : 1, 2, and 3.
And thank you all for the comments and advice. @r2evans, @user2554330 , @pat-s
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…