[R-pkg-devel] Copyright of code "borrowed" from the stats package

2019-10-16 Thread Matt Denwood
I needed a basic optimisation routine in some C-level code within an R package I am developing, and the Brent_fmin function from R/src/library/stats/src/optimize.c was a good starting point for me to modify. The original file contains: /* * R : A Computer Language for Statist

[R-pkg-devel] Please help

2019-10-16 Thread Bahadır YÜZBAŞI
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:

Re: [R-pkg-devel] Please help

2019-10-16 Thread Max Turgeon
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

Re: [R-pkg-devel] Please help

2019-10-16 Thread Dirk Eddelbuettel
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 skele

Re: [R-pkg-devel] unicode WARNING on solaris?

2019-10-16 Thread Toby Hocking
Right, thanks for the tip. For future reference: if you want to avoid this warning, but still use examples with unicode, you can put the unicode text data in inst/extdata/file_with_unicode.txt and then in your example code you can read it via readLines(system.file("extdata", "file_with_unicode.tx