Re: [R-pkg-devel] "crossprod" is not a BUILTIN function

2023-10-26 Thread Plamen Mirazchiyski
I apologize for misreading Ivan's first email. I now installed from the tar.gz source file, everything worked as expected. Thank you both for the thorough explanations. Best, Plamen On 10/26/23 16:20, Ivan Krylov wrote: В Thu, 26 Oct 2023 15:43:54 +0200 Plamen Mirazchiyski пишет: If I unde

Re: [R-pkg-devel] "crossprod" is not a BUILTIN function

2023-10-26 Thread Ivan Krylov
В Thu, 26 Oct 2023 15:43:54 +0200 Plamen Mirazchiyski пишет: > If I understand Ivan's email, my package should work on R 4.3.1, but > what about newer versions? The source package (the .tar.gz file obtained using R CMD build) will keep working fine on both R 4.3 and R 4.4. The binary package (

Re: [R-pkg-devel] "crossprod" is not a BUILTIN function

2023-10-26 Thread Duncan Murdoch
There are two kinds of builds: source builds (producing the .tar.gz file) and binary builds (producing the .zip file on Windows). Binary builds are specific to R minor versions: if you build on R version x.y.z, you can't expect the package to work if either x or y changes. Source builds sho

Re: [R-pkg-devel] "crossprod" is not a BUILTIN function

2023-10-26 Thread Plamen Mirazchiyski
Thank you very much for your responses Duncan and Ivan. I do not call .Internal(crossprod( ... )) directly. I use crossprod() just once in the entire package, the actual line of code is unname(obj = crossprod(x = sweep(x = as.matrix(replicated.averages), MARGIN = 2, mean.replicate.averages, F

Re: [R-pkg-devel] "crossprod" is not a BUILTIN function

2023-10-25 Thread Ivan Krylov
В Wed, 25 Oct 2023 21:02:00 +0200 Plamen Mirazchiyski пишет: > Today I was preparing a new version for the RALSA package. I have > built a Windows package using "devtools::check_win_devel()". > The machine has R 4.3.1, the latest official release. After I load the > test RALSA package, R display

Re: [R-pkg-devel] "crossprod" is not a BUILTIN function

2023-10-25 Thread Duncan Murdoch
The sources show that crossprod has become a primitive function. I don't think this should affect any R code that calls crossprod(); are you trying to call .Internal(crossprod( ... )) directly? This was in the news a few weeks ago: "The matrix multiplication functions ‘crossprod()’ and ‘tcross

[R-pkg-devel] "crossprod" is not a BUILTIN function

2023-10-25 Thread Plamen Mirazchiyski
Dear All, Today I was preparing a new version for the RALSA package. I have built a Windows package using "devtools::check_win_devel()". I took the built Windows package and tested it on a Windows 10 machine to see if everything works as intended before submitting the source to CRAN. The mach