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

2024-03-26 Thread Vincent Dorie
Hi Jesse, What I've done is to use a mix of compile-time detection of compiler SIMD support and run-time detection of SIMD hardware support. At package load, SIMD-specific versions of functions are installed in a symbol table. It's not perfect and it can be hard to support evolving platforms,

Re: [R-pkg-devel] help fixing CRAN package sos-now fails on GitHub

2023-05-22 Thread Vincent Dorie
A simple fix might be to redefine findFn in the global environment of the vignette, have it explicitly call sos::findFn, and return a result sanitized for LaTeX output. According to this: https://stackoverflow.com/questions/32865384/function-to-sanitize-strings-for-latex-compilation it looks like

Re: [R-pkg-devel] How to update "SystemRequirements: C++11"?

2023-02-07 Thread Vincent Dorie
This might be helpful. Using autoconf and ax_cxx_compile_stdcxx ( https://www.gnu.org/software/autoconf-archive/ax_cxx_compile_stdcxx.html) in package_root/tools/m4: configure.ac AC_PREREQ(2.64) AC_INIT(yourpackagename, 1.0, y...@email.com) AC_CONFIG_SRCDIR([src/main.cpp])