tools/rustarch.R

# Match the Windows Rust target selection used by the CRAN package gifski.
arch <- if (grepl("aarch", R.version$platform)) {
    "aarch64-pc-windows-gnullvm"
} else if (grepl("clang", Sys.getenv("R_COMPILED_BY"))) {
    "x86_64-pc-windows-gnullvm"
} else if (grepl("i386", R.version$platform)) {
    "i686-pc-windows-gnu"
} else {
    "x86_64-pc-windows-gnu"
}

cat(arch)

Try the hobbs package in your browser

Any scripts or data that you put into this service are public.

hobbs documentation built on Oct. 6, 2026, 1:07 a.m.