tools/winlibs.R

if(!file.exists("../windows/fluidsynth/include/fluidsynth.h")){
  unlink("../windows", recursive = TRUE)
  url <- if(grepl("aarch", R.version$platform)){
    "https://github.com/r-windows/bundles/releases/download/fluidsynth-2.3.4/fluidsynth-2.3.4-clang-aarch64.tar.xz"
  } else if(grepl("clang", Sys.getenv('R_COMPILED_BY'))){
    "https://github.com/r-windows/bundles/releases/download/fluidsynth-2.3.4/fluidsynth-2.3.4-clang-x86_64.tar.xz"
  } else if(getRversion() >= "4.2") {
    "https://github.com/r-windows/bundles/releases/download/fluidsynth-2.3.4/fluidsynth-2.3.4-ucrt-x86_64.tar.xz"
  } else {
    stop("This package requires at least R-4.2 on Windows")
  }
  download.file(url, basename(url), quiet = TRUE)
  dir.create("../windows", showWarnings = FALSE)
  untar(basename(url), exdir = "../windows", tar = 'internal')
  unlink(basename(url))
  setwd("../windows")
  file.rename(list.files(), 'fluidsynth')
}

Try the fluidsynth package in your browser

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

fluidsynth documentation built on Oct. 4, 2024, 5:11 p.m.