Re: [R-pkg-devel] [Tagged] Re: multithreading in packages

2021-10-09 Thread Vladimir Dergachev
either). best Vladimir Dergachev __ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel

Re: [R-pkg-devel] multithreading in packages

2021-10-09 Thread Vladimir Dergachev
On Sat, 9 Oct 2021, Ivan Krylov wrote: В Thu, 7 Oct 2021 21:58:08 -0400 (EDT) Vladimir Dergachev пишет: * My understanding from reading documentation and source code is that there is no dedicated support in R yet, but there are packages that use multithreading. Are there any plans

Re: [R-pkg-devel] [Tagged] Re: multithreading in packages

2021-10-09 Thread Vladimir Dergachev
has been mentioned so far: https://cran.r-project.org/web/views/HighPerformanceComputing.html Thanks for the link ! I see there is an OpenCL package, very interesting. best Vladimir Dergachev (not even by Dirk just now, who maintains it!) Best, Wolfgang -Original Message- From: R

Re: [R-pkg-devel] multithreading in packages

2021-10-09 Thread Vladimir Dergachev
and this turned up some packages as well. Looks like both openmp and pthreads are used in packages that passed CRAN checks. thanks Vladimir Dergachev Gabor [...] __ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package

Re: [R-pkg-devel] [Tagged] Re: multithreading in packages

2021-10-09 Thread Vladimir Dergachev
On Sat, 9 Oct 2021, Ben Bolker wrote: FWIW there is some machinery in the glmmTMB package for querying, setting, etc. the number of OpenMP threads. https://github.com/glmmTMB/glmmTMB/search?q=omp Great, thank you ! Vladimir Dergachev On 10/9/21 11:45 AM, Vladimir Dergachev wrote

Re: [R-pkg-devel] [Tagged] Re: multithreading in packages

2021-10-09 Thread Vladimir Dergachev
/package=RhpcBLASctl Very useful, thank you ! Tried it on my notebook, I can see OpenMP working. thanks Vladimir Dergachev Dirk -- https://dirk.eddelbuettel.com | @eddelbuettel | e...@debian.org __ R-package-devel@r-project.org mailing list https

Re: [R-pkg-devel] multithreading in packages

2021-10-09 Thread Vladimir Dergachev
for pointing this out ! Looks like pbdDMAT uses mpi. Also, it appears this package was removed from CRAN for failing to compile on macs, which seems rather unfair - I don't know of any clusters running mac os. Vladimir Dergachev __ R-package-devel@r

Re: [R-pkg-devel] How does one install a libtool generated libfoo.so.1 file into ./libs/?

2021-10-19 Thread Vladimir Dergachev
The simplest thing to try is to compile the library statically and link it into your package. No extra files - no trouble. You can also try renaming the file from *.so.1 to *.so. best Vladimir Dergachev __ R-package-devel@r-project.org mailing

Re: [R-pkg-devel] [External] Formula modeling

2021-10-08 Thread Vladimir Dergachev
like a formula, so ~c becomes a way to group formulas. best Vladimir Dergachev This is very similar to how the function ?lme4::lmer uses the bar to separate expressions for design matrices from grouping factors. Actually, the subject and time variables are needed for subsetting prices

[R-pkg-devel] multithreading in packages

2021-10-08 Thread Vladimir Dergachev
. * control of maximum number of threads. One can default to openmp environment variable, but these might vary between openmp implementations. thank you very much Vladimir Dergachev __ R-package-devel@r-project.org mailing list https://stat.ethz.ch

Re: [R-pkg-devel] Python module dependency

2023-09-01 Thread Vladimir Dergachev
of Python :) Also, ctef has a dependency on KMeans, so translating ctef into R will remove that too. best Vladimir Dergachev On Fri, 1 Sep 2023, Hanyu Song wrote: Hello, I am writing an R package that depends on a very uncommonly used Python module named "ctef" and I ha

Re: [R-pkg-devel] Package bioOED has been removed from CRAN just for personal reasons

2023-11-03 Thread Vladimir Dergachev
direct on occasion. best Vladimir Dergachev David __ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel

Re: [R-pkg-devel] [r-package-devel] Win.Metafile and package check - "Found the platform-specific device:"

2023-11-03 Thread Vladimir Dergachev
suggestions: * let users specify the graphics device they want * reading manpage for dev.new() it accepts a bunch of options - there is probably a way to request the metafile device you want. But I could not find that in documentation. best Vladimir Dergachev Thanks, Wayne

Re: [R-pkg-devel] RFC: an interface to manage use of parallelism in packages

2023-11-03 Thread Vladimir Dergachev
care to make as few memory allocation calls as possible within individual threads. best Vladimir Dergachev __ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel

Re: [R-pkg-devel] [r-package-devel] Win.Metafile and package check - "Found the platform-specific device:"

2023-11-05 Thread Vladimir Dergachev
it in some other way satisfies the code. best Vladimir Dergachev Thanks, Wayne -Original Message----- From: Vladimir Dergachev Sent: 03 November 2023 20:03 To: Jones, Wayne R GSUK-PTX/D/S Cc: r-package-devel@r-project.org Subject: Re: [R-pkg-devel] [r-package-devel] Win.Metafile and pac

Re: [R-pkg-devel] Wrong mailing list: Could the 100 byte path length limit be lifted?

2023-12-14 Thread Vladimir Dergachev
limitation. I suspect the answer is no, but as all my systems are Linux I can not check. Vladimir Dergachev __ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel

Re: [R-pkg-devel] Additional Issues: Intel

2024-01-16 Thread Vladimir Dergachev
memory for that. best Vladimir Dergachev [1]https://www.stats.ox.ac.uk/pub/bdr/Intel/grattan.out __ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel __ R-package-d

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

2024-05-08 Thread Vladimir Dergachev
patibility package that they can depend on ? best Vladimir Dergachev __ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel

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

2024-05-09 Thread Vladimir Dergachev
to other suggestions, you might want to try my package "RMVL" - aside from fast writes, it also gives you ability to share data between ultimate users of the package. best Vladimir Dergachev PS Example: library("RMVL") M<-mvl_open("test1.mvl", append=TRU

Re: [R-pkg-devel] [External] SETLENGTH()

2024-05-04 Thread Vladimir Dergachev
On Sat, 4 May 2024, luke-tier...@uiowa.edu wrote: On Sat, 4 May 2024, Vladimir Dergachev wrote: [Some people who received this message don't often get email from volo...@mindspring.com. Learn why this is important at https://aka.ms/LearnAboutSenderIdentification ] I noticed a note

Re: [R-pkg-devel] Urgent Review of R Packages in Light of Recent RDS Exploit

2024-05-03 Thread Vladimir Dergachev
like tab-separated CSV files with column names. One can also use MVL files (RMVL package). best Vladimir Dergachev __ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel

Re: [R-pkg-devel] Urgent Review of R Packages in Light of Recent RDS Exploit

2024-05-04 Thread Vladimir Dergachev
ic version of Python. You can then _hope_ that containers will have fewer compatibility issues, or at least you can sell containers to your management on this idea. But this is not really a good thing for an open source project like R. best Vladimir Dergachev KR Maciej Nasinski University

Re: [R-pkg-devel] Urgent Review of R Packages in Light of Recent RDS Exploit

2024-05-04 Thread Vladimir Dergachev
container that runs on the same physical hardware as other containers, you would be more secure to use a dedicated computer for the application. best Vladimir Dergachev The GitHub codespaces are a cloud service that can be created anytime, with a specific setup behind it (Dockerfile, set

[R-pkg-devel] SETLENGTH()

2024-05-04 Thread Vladimir Dergachev
I noticed a note on RMVL package check page for development version of R: Found non-API call to R: ‘SETLENGTH’ Is this something that is work-in-progress for the development version, or has SETLENGTH() been deprecated ? What should I use instead ? thank you very much Vladimir Dergachev

Re: [R-pkg-devel] Altrep header, MSVC, and STRUCT_SUBTYPES macro

2024-05-15 Thread Vladimir Dergachev
portable. thank you Vladimir Dergachev __ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel

Re: [R-pkg-devel] RFC: C backtraces for R CMD check via just-in-time debugging

2024-03-11 Thread Vladimir Dergachev
On Tue, 12 Mar 2024, Ivan Krylov wrote: Vladimir, Thank you for the example and for sharing the ideas regarding symbol-relative offsets! On Thu, 7 Mar 2024 09:38:18 -0500 (EST) Vladimir Dergachev wrote: unw_get_reg(, UNW_REG_IP, ); Is it ever possible for unw_get_reg

Re: [R-pkg-devel] RFC: C backtraces for R CMD check via just-in-time debugging

2024-03-07 Thread Vladimir Dergachev
be identical R_init_RMVL() printouts. best Vladimir Dergachev On Thu, 7 Mar 2024, Ivan Krylov wrote: On Tue, 5 Mar 2024 18:26:28 -0500 (EST) Vladimir Dergachev wrote: I use libunwind in my programs, works quite well, and simple to use. Happy to share the code if there is interest.. Do you mean

Re: [R-pkg-devel] RFC: C backtraces for R CMD check via just-in-time debugging

2024-03-05 Thread Vladimir Dergachev
I use libunwind in my programs, works quite well, and simple to use. Happy to share the code if there is interest.. best Vladimir Dergachev On Mon, 4 Mar 2024, Ivan Krylov via R-package-devel wrote: On Sun, 3 Mar 2024 19:19:43 -0800 Kevin Ushey wrote: Would libSegFault be useful here

Re: [R-pkg-devel] using portable simd instructions

2024-03-27 Thread Vladimir Dergachev
n C that I have tried many years ago. * If after all your work you got a factor of 2 speedup you are doing fine. If you want larger speedup change your algorithm. best Vladimir Dergachev On Wed, 27 Mar 2024, Dirk Eddelbuettel wrote: On 27 March 2024 at 08:48, jesse koops wrote: | Thank

Re: [R-pkg-devel] handling documentation build tools

2024-05-21 Thread Vladimir Dergachev
a Makefile. It can be something like this: all: documentation.pdf documentation.pdf: documentation.lyx lyx --export pdf4 documentation.lyx Then every time before you do R build, must run make in the directory with the Makefile. best Vladimir Dergachev Regarding the trick, I'm puzzled