tools/winlibs.R

# Build against gifski libs compiled with the Rtools
VERSION <- commandArgs(TRUE)

# Hack: latest gifski does not work on Windows Vista
if(grepl('Windows (Vista|Server 2008)', osVersion)){
  VERSION <- '1.4.3'
}

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

Try the gifski package in your browser

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

gifski documentation built on Aug. 12, 2023, 5:09 p.m.