Re: [R-pkg-devel] Removing packages files

2025-01-08 Thread Vladimir Dergachev
Hi Lluís, Just wanted to add to the discussion that it would be good to consider users that are disconnected or behind a firewall and are installing the package from file. An option to point the package to a separately downloaded file would be useful. best Vladimir Dergachev On Thu

Re: [R-pkg-devel] New package with C++ code causes R abort in RStudio, not in R console.

2024-11-12 Thread Vladimir Dergachev
something recursively it might work in one and not another. The parsers generated by flex and bison are designed to handle arbitrary length inputs. best Vladimir Dergachev Kind regards, Luc De Wilde Van: Vladimir Dergachev Verzonden: dinsdag 12 nov

Re: [R-pkg-devel] New package with C++ code causes R abort in RStudio, not in R console.

2024-11-12 Thread Vladimir Dergachev
//westes.github.io/flex/manual/Simple-Examples.html#Simple-Examples Bison: https://www.gnu.org/software/bison/manual/bison.html#Infix-Calc best Vladimir Dergachev On Tue, 12 Nov 2024, Luc De Wilde wrote: Dear R package developers, I'm helping with the development of the lavaan package

Re: [R-pkg-devel] How to get arbitrary precise inputs from R for an Rcpp package?

2024-07-18 Thread Vladimir Dergachev
creating too many new non-zero entries, so for those you need to use a different method. best Vladimir Dergachev Best, Khue Tran On Fri, Jul 19, 2024 at 12:14 PM Vladimir Dergachev wrote: Do you need to run eigen() on an arbitrary matrix or symmetric one ? best

Re: [R-pkg-devel] How to get arbitrary precise inputs from R for an Rcpp package?

2024-07-18 Thread Vladimir Dergachev
Do you need to run eigen() on an arbitrary matrix or symmetric one ? best Vladimir Dergachev On Fri, 19 Jul 2024, Khue Tran wrote: Thank you Simon! This is very helpful! Regarding eigen, I found in the Boost library the following example for arbitrary precision matrix solver: https

Re: [R-pkg-devel] How to get arbitrary precise inputs from R for an Rcpp package?

2024-07-18 Thread Vladimir Dergachev
I see there are existing extended precision packages: Ryacas and Rmpfr, you might want to take a look at them and their representation of numbers with higher precision than a double. best Vladimir Dergachev On Fri, 19 Jul 2024, Khue Tran wrote: Hi, I am trying to create an Rcpp package

Re: [R-pkg-devel] Options "reset" when options(opts)

2024-07-11 Thread Vladimir Dergachev
and restoring full options set with reset=TRUE. best Vladimir Dergachev Writing: wyclif.substack.com Book: www.wyclifsdust.com On Thu, 11 Jul 2024 at 08:03, Greg Jefferis wrote: Dear John, You need to collect the return value when setting options. This will include an explicit NULL value

Re: [R-pkg-devel] warning: explicit assigning values of variable of type ....

2024-06-07 Thread Vladimir Dergachev
ze this in the same way as passing an argument list. If this is a concern, probably some code restructuring is a good idea. best Vladimir Dergachev On Thu, Jun 6, 2024, 19:16 Søren Højsgaard via R-package-devel < r-package-devel@r-project.org> wrote: Dear all, From CRAN maintainer

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

2024-05-21 Thread Vladimir Dergachev
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 puzzl

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

2024-05-15 Thread Vladimir Dergachev
out to be more 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] Fast Matrix Serialization in R?

2024-05-09 Thread Vladimir Dergachev
dd 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", appen

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] [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 no

[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] Urgent Review of R Packages in Light of Recent RDS Exploit

2024-05-04 Thread Vladimir Dergachev
ainer 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

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

2024-05-04 Thread Vladimir Dergachev
r a specific 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

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

2024-05-03 Thread Vladimir Dergachev
mon format 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] 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 you,

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(&cursor, UNW_REG_IP, &pc); Is it ever poss

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

2024-03-07 Thread Vladimir Dergachev
ant to be clever and print out information on which package contains which function, or there might 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 progra

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] 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

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] [r-package-devel] Win.Metafile and package check - "Found the platform-specific device:"

2023-11-05 Thread Vladimir Dergachev
in.metafile() so calling 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-de

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

2023-11-03 Thread Vladimir Dergachev
it to 1, but then I take extra 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-03 Thread Vladimir Dergachev
cks? Two 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 Than

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

2023-11-03 Thread Vladimir Dergachev
le bit too 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] Python module dependency

2023-09-01 Thread Vladimir Dergachev
lines 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

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] multithreading in packages

2021-10-09 Thread Vladimir Dergachev
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-de

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

2021-10-09 Thread Vladimir Dergachev
view 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- Fr

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] [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
load 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
earch for cran+omp 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.et

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 for

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 for

[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