Configure an R package for C runtime SIMD dispatch
Source:R/template.R
simd_dispatch_template_path.Rduse_simd_dispatch() copies the dispatch scaffold into an R package and
performs the package-name and C-prefix substitutions needed for a working
package. It writes package files, updates DESCRIPTION, .Rbuildignore,
and .gitignore, and returns the copied paths invisibly.
Usage
simd_dispatch_template_path()
use_simd_dispatch(
path = ".",
pkg = NULL,
prefix = NULL,
overwrite = FALSE,
quiet = FALSE
)Arguments
- path
Package root where the template should be copied.
- pkg
R package name. If
NULL, the name is read fromDESCRIPTION.- prefix
C symbol prefix used to replace
sd_in the copied sources. The default is a sanitized lowercase package name.- overwrite
Whether to overwrite existing files.
- quiet
Whether to suppress progress messages.