File: winlibs.R

package info (click to toggle)
rquantlib 0.4.17-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 1,308 kB
  • sloc: cpp: 3,690; sh: 69; makefile: 6; ansic: 4
file content (16 lines) | stat: -rw-r--r-- 700 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Build against mingw-w64 build of quantlib
if (!file.exists("../windows/quantlib-1.16/include/ql/quantlib.hpp")) {
  if (getRversion() < "3.3.0") setInternet2()
  download.file("https://github.com/rwinlib/quantlib/archive/v1.16.zip", "quantlib-1.16.zip", quiet = TRUE)
  dir.create("../windows", showWarnings = FALSE)
  unzip("quantlib-1.16.zip", exdir = "../windows")
  unlink("quantlib-1.16.zip")
  
  # Static libraries for the told toolchain
  unzip("../windows/quantlib-1.16/lib-4.9.3.zip", exdir = "../windows/quantlib-1.16")
  
  # Static libraries for the new toolchain
  if (getRversion() > "3.6.99"){
    unzip("../windows/quantlib-1.16/lib.zip", exdir = "../windows/quantlib-1.16")
  }
}