-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathconfigure.win
29 lines (22 loc) · 938 Bytes
/
configure.win
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/bin/sh
# This is changed to work with Jeroen's RWinLib collections.
# Rather than having the package download the latest archive
# we get the user to do this for now.
if test -z "$LIB_XML" ; then
${R_HOME}/bin${R_ARCH}/Rscript getWinArchive.R
# echo "Please define LIB_XML to point to where the libxml2 archive was unpacked"
# echo "You can download this archive from https://github.com/rwinlib/libxml2/archive/v2.9.8.zip"
# echo "Then unzip this and set the LIB_XML directory to point to this."
# exit 1
# DIR=`find ${HOME} -name parser.h | head -n 1`
# if test -z "$DIR" ; then
#
# fi
# LIB_XML=`echo "$DIR" | sed -e 's|/include/.*||' | sed -e 's|^/home|C:/cygwin64|'`
#
fi
#echo "LIB_XML = $LIB_XML"
#echo "LIB_XML=$LIB_XML" > src/Makevariables
echo "supportsExpat <- function() FALSE" > R/supports.R
echo "supportsLibxml <- function() TRUE" >> R/supports.R
echo "ADD_XML_OUTPUT_BUFFER = FALSE" >> R/supports.R