Re: [R-pkg-devel] [Re] warning: type of ‘zhpevx_’ does not match original declaration [-Wlto-type-mismatch]

2020-12-18 Thread Pierre Lafaye de Micheaux
Thank you Tomas, For those interested, here is (attached file) how I modified the Cpp file following the (last?) advice I received from Tomas. I plan to investigate the iso_c_binding approach suggested by Ivan in a future version of the package, but I just wanted to give it a try with this appr

Re: [R-pkg-devel] Package Encoding and Literal Strings

2020-12-18 Thread Tomas Kalibera
Hi Joris, thanks for the example. You can actually simply have Test.R assign the two variables and then run Encoding(utf8StringsPkg1::mathotString) charToRaw(utf8StringsPkg1::mathotString) Encoding(utf8StringsPkg1::tao) charToRaw(utf8StringsPkg1::tao) I tried on Linux, Windows/UTF-8 (the experi

Re: [R-pkg-devel] Package Encoding and Literal Strings

2020-12-18 Thread jo...@jorisgoosen.nl
Hello Tomas, I have made a minimal example that demonstrates my problem: https://github.com/JorisGoosen/utf8StringsPkg This package is encoded in UTF-8 as is Test.R. There is a little Rcpp function in there I wrote that displays the bytes straight from R's CHAR to be sure no conversion is happeni

Re: [R-pkg-devel] Package Encoding and Literal Strings

2020-12-18 Thread Tomas Kalibera
On 12/17/20 6:43 PM, jo...@jorisgoosen.nl wrote: > > > On Thu, 17 Dec 2020 at 18:22, Tomas Kalibera > wrote: > > On 12/17/20 5:17 PM, jo...@jorisgoosen.nl > wrote: >> >> >> On Thu, 17 Dec 2020 at 10:46, Tomas Kalibera >>

Re: [R-pkg-devel] unexpected CRAN pretest failure

2020-12-18 Thread Rossum, Bart-Jan van
I used that pre-compiled version indeed. I tried the latest version again this morning, it is now at r79645, and still all checks pass cleanly. I also reran the r-hub and winbuilder checks this morning. r-hub is at now at version r79633, the version where I first noted the issue with CRAN/winbui

Re: [R-pkg-devel] [Re] warning: type of ‘zhpevx_’ does not match original declaration [-Wlto-type-mismatch]

2020-12-18 Thread Tomas Kalibera
On 12/18/20 8:25 AM, Pierre Lafaye de Micheaux wrote: > Dear Ivan, > > Thank you for your comment. And also for the previous one. > > I indeed made a mistake with JOBZ, RANGE and UPLO, now changed to: > > � � const char *CJOBZ = jobz[0]; > � � const char *CRANGE = range[0]; > � � const char *CUPLO