Re: [R-pkg-devel] flang doesn't support derived types

2024-05-09 Thread Othman El Hammouchi
Dear Ivan, Thanks again for the help, you've given me some great pointers to pursue. I will keep you posted on what CRAN responds and whether I find a workaround. > I do wish that flang-new would be a better compiler or at least a > better documented one, but instead of a list of features on

Re: [R-pkg-devel] Fast Matrix Serialization in R?

2024-05-09 Thread Simon Urbanek
> On 10/05/2024, at 12:31 PM, Henrik Bengtsson > wrote: > > On Thu, May 9, 2024 at 3:46 PM Simon Urbanek > wrote: >> >> FWIW serialize() is binary so there is no conversion to text: >> >>> serialize(1:10+0L, NULL) >> [1] 58 0a 00 00 00 03 00 04 02 00 00 03 05 00 00 00 00 05 55 54 46 2d 38

Re: [R-pkg-devel] Fast Matrix Serialization in R?

2024-05-09 Thread Henrik Bengtsson
On Thu, May 9, 2024 at 3:46 PM Simon Urbanek wrote: > > > > > On 9/05/2024, at 11:58 PM, Vladimir Dergachev > > wrote: > > > > > > > > On Thu, 9 May 2024, Sameh Abdulah wrote: > > > >> Hi, > >> > >> I need to serialize and save a 20K x 20K matrix as a binary file. This > >> process is significa

Re: [R-pkg-devel] Fast Matrix Serialization in R?

2024-05-09 Thread Simon Urbanek
> On 9/05/2024, at 11:58 PM, Vladimir Dergachev wrote: > > > > On Thu, 9 May 2024, Sameh Abdulah wrote: > >> Hi, >> >> I need to serialize and save a 20K x 20K matrix as a binary file. This >> process is significantly slower in R compared to Python (4X slower). >> >> I'm not sure about t

Re: [R-pkg-devel] Overcoming CRAN's 5mb vendoring requirement

2024-05-09 Thread Josiah Parry
> > ...but that's a luxury someone would have to pay for. > I'd happily give up my Netflix subscription for this. I suspect the R-foundation/consortium could assist as well? Referring to the "Using Rust in CRAN packages" document we must be able to ...download a specific version from a secure an

Re: [R-pkg-devel] Overcoming CRAN's 5mb vendoring requirement

2024-05-09 Thread Dirk Eddelbuettel
Software Heritage (see [1] for their website and [2] for a brief intro I gave at useR! 2019 in Toulouse) covers GitHub and CRAN [3]. It is by now 'in collaboration with UNESCO', supported by a long and posh list of sponsors [4] and about as good as it gets to 'ensure longevity of artifacts'. It

Re: [R-pkg-devel] Overcoming CRAN's 5mb vendoring requirement

2024-05-09 Thread Ivan Krylov via R-package-devel
В Wed, 8 May 2024 16:01:23 -0400 Josiah Parry пишет: >- I'll see if I can get the configure.ac to make the appropriate > Rscript call for configure.win. > - I think the idea of having a single `confgure.ac` file to > generate both configure and configure.win is nice. Guidance with > Git

Re: [R-pkg-devel] flang doesn't support derived types

2024-05-09 Thread Ivan Krylov via R-package-devel
В Thu, 09 May 2024 15:31:25 + Othman El Hammouchi пишет: > Do I understand it correctly that there is no way to specify a > Fortran standard in the SystemRequirements? It's possible (and even recommended) to describe the Fortran version requirement in SystemRequirements [1], but this field i

Re: [R-pkg-devel] flang doesn't support derived types

2024-05-09 Thread Othman El Hammouchi
Dear Ivan, Thank you so much for taking the time. I'd already figured out my misunderstanding on polymorphism in the mean time. The flang limitations are quite unfortunate, especially since there's no way to know this in development. The CI pipeline provided by the RStudio folks uses gfortran,

Re: [R-pkg-devel] flang doesn't support derived types

2024-05-09 Thread Ivan Krylov via R-package-devel
Dear Othman El Hammouchi, Welcome to R-package-devel! В Wed, 08 May 2024 16:52:51 + Othman El Hammouchi пишет: > However, upon submission I received an automatic reply shortly > afterwards saying the build had failed on CRAN's servers for Debian. > The log gives the following error: > > fl

Re: [R-pkg-devel] package removed from CRAN

2024-05-09 Thread Uwe Ligges
On 08.05.2024 17:30, Jose V. Die Ramon wrote: Hello, I just discovered that my package 'refseqR' was removed from the CRAN repository on April 30th. https://cran.r-project.org/web/packages/refseqR/index.html This news is extremely upsetting, especially because I did not receive any communi

Re: [R-pkg-devel] Fast Matrix Serialization in R?

2024-05-09 Thread Vladimir Dergachev
On Thu, 9 May 2024, Sameh Abdulah wrote: Hi, I need to serialize and save a 20K x 20K matrix as a binary file. This process is significantly slower in R compared to Python (4X slower). I'm not sure about the best approach to optimize the below code. Is it possible to parallelize the seria

Re: [R-pkg-devel] is Fortran write still strictly forbidden?

2024-05-09 Thread Jisca Huisman
Hello Berend, Fantastic, thank you! I'm fairly sure I'll be able to figure something out with your code as a guide. best, Jisca On Thu, 09/05/2024 13:08, Berend Hasselman wrote: Hi, Have a look at package nleqslv to see how you can avoid Fortran write completely. Look at the file src/nwo

Re: [R-pkg-devel] is Fortran write still strictly forbidden?

2024-05-09 Thread Berend Hasselman
Hi, Have a look at package nleqslv to see how you can avoid Fortran write completely. Look at the file src/nwout.c and the calls of various functions therein in the other fortran files. regards, Berend Hasselman > On 08-05-2024, at 10:37, Jisca Huisman wrote: > > Hello, > > I like to use