tools/wincairo.R

VERSION <- commandArgs(TRUE)
if(!file.exists(sprintf("../windows/cairo-%s/include/cairo/cairo.h", VERSION))){
  if(getRversion() < "3.3.0") setInternet2()
  download.file(sprintf("https://github.com/rwinlib/cairo/archive/v%s.zip", VERSION), "libcairo.zip", quiet = TRUE)
  dir.create("../windows", showWarnings = FALSE)
  unzip("libcairo.zip", exdir = "../windows")
  unlink("libcairo.zip")
}

Try the unigd package in your browser

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

unigd documentation built on April 3, 2025, 6:11 p.m.