Skip to content

[R-pkg-devel] Please help

4 messages · Bahadır YÜZBAŞI, Max Turgeon, Dirk Eddelbuettel

#
Hi,

I am getting the following error. I could not figure it out since this is my first package. Would you mind if one helps me?

package rbridge_1.0.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/rbridge_1.0.0_20191016_162205/Windows/00check.log>
Status: 2 NOTEs
Debian: <https://win-builder.r-project.org/incoming_pretest/rbridge_1.0.0_20191016_162205/Debian/00check.log>
Status: 1 ERROR, 1 NOTE

More details are given in the directory:
<https://win-builder.r-project.org/incoming_pretest/rbridge_1.0.0_20191016_162205/>

Best



?????????????????????????
Assoc. Prof. Bahadir Yuzbasi, PhD
Department of Econometrics, Faculty of Economics and Administrative Sciences
Inonu University, Malatya, Turkey

http://inonu.edu.tr/en/bahadir.yuzbasi
#
Hi Bahadir,


The issue seems to be your Makevars/Makevars.win files. The error message "undefined symbol: dpotrf_" suggests that you may not be properly linking with Lapack. Incidentally, one of the NOTEs you get on Windows is also related to a potential issue with Makevars.win (the other NOTE can be ignored).


It may help to look at what other packages linking to RcppArmadillo have done and try to reproduce it/adapt it to your setting.


Max Turgeon
Assistant Professor
Department of Statistics
Department of Computer Science
University of Manitoba
maxturgeon.ca<http://maxturgeon.ca>
#
Bahadir,
On 16 October 2019 at 19:12, Max Turgeon wrote:
| It may help to look at what other packages linking to RcppArmadillo have done and try to reproduce it/adapt it to your setting.

Packages using the package generator RcppArmadillo.package.skeleton() get
these two templates via the skeleton/ directory of the installed package:

  https://github.com/RcppCore/RcppArmadillo/blob/master/inst/skeleton/Makevars
  https://github.com/RcppCore/RcppArmadillo/blob/master/inst/skeleton/Makevars.win

They haven't changed in years, but are needed as Max correctly identified.

Best,  Dirk
1 day later
#
Dear Dirk and Max,

I would like to thank you both since your fast response to me. I revised my src/Makevars and src/Makevars.win<http://Makevars.win> by following your suggestions.
Finally, it passed first auto check by CRAN by using the following flags.
?? ???????????????????????
CXX_STD = CXX11
PKG_LIBS = $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS)
?????????????????????????

Warmest Regards,
Bahadir
On 16 Oct 2019, at 22:33, Dirk Eddelbuettel <edd at debian.org<mailto:edd at debian.org>> wrote:
Bahadir,
On 16 October 2019 at 19:12, Max Turgeon wrote:
| It may help to look at what other packages linking to RcppArmadillo have done and try to reproduce it/adapt it to your setting.

Packages using the package generator RcppArmadillo.package.skeleton() get
these two templates via the skeleton/ directory of the installed package:

 https://github.com/RcppCore/RcppArmadillo/blob/master/inst/skeleton/Makevars
 https://github.com/RcppCore/RcppArmadillo/blob/master/inst/skeleton/Makevars.win

They haven't changed in years, but are needed as Max correctly identified.

Best,  Dirk

--
http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org<mailto:edd at debian.org>