Skip to content
This repository was archived by the owner on Oct 26, 2023. It is now read-only.

Latest commit

 

History

History
39 lines (23 loc) · 873 Bytes

File metadata and controls

39 lines (23 loc) · 873 Bytes

Package fixes

Some CRAN packages have hardcoded configurations for winbuilder and need some extra help. Here we list how to install these using rtools40, until the problem is fixed in the package itself.

XML

You need the libxml2 system library:

pacman -S mingw-w64-{i686,x86_64}-libxml2

The XML package wants to have an LIB_XML variable:

Sys.setenv(LIB_XML = "$(MINGW_PREFIX)")
install.packages("XML", type= "source")

A backward compatible fix for the package author would be to set a default LIB_XML ?= $(MINGW_PREFIX) in Makevars.win

RCurl

You need the curl system library:

pacman -S mingw-w64-{i686,x86_64}-curl

Now you can install RCurl:

install.packages("RCurl", type= "source")

This spits out a lot of warnings that you can ignore (The package author should set -DSTRICT_R_HEADERS in Makevars.win).