<?xml version="1.0" encoding="utf-8"?>
<installer-script minSpecVersion="1.000000" authoringTool="com.apple.PackageMaker" authoringToolVersion="3.0.3" authoringToolBuild="174">
    <title>R 2.11.0 for Mac OS X 10.5 or higher (Leopard build)</title>
    <options customize="allow" allow-external-scripts="no"/>
    <domains enable_anywhere="true" enable_localSystem="true"/>
    <volume-check script="pm_volume_check();"/>
    <script>function pm_volume_check() {
  if(!(my.target.systemVersion.ProductVersion >= '10.5.0')) {
    my.result.title = 'Failure';
    my.result.message = 'Leopard build of R requires Mac OS X 10.5 or higher. Use Tiger build (available from CRAN) for older systems.';
    my.result.type = 'Fatal';
    return false;
  }
  return true;
}



function pm_gui64_selected() {
  result = true;
  result = result &amp;&amp; (system.sysctl('hw.cpu64bit_capable') == '1');
  return result;
}


function pm_gui64_startSelected() {
  result = true;
  result = result &amp;&amp; (system.sysctl('hw.cpu64bit_capable') == '1');
  return result;
}</script>
    <background file="background" alignment="topleft" scaling="none"/>
    <welcome language="en" mime-type="text/rtf"><![CDATA[{\rtf1\ansi\ansicpg1252\cocoartf949\cocoasubrtf540
{\fonttbl\f0\fnil\fcharset0 LucidaGrande;}
{\colortbl;\red255\green255\blue255;}
\pard\tx560\tx1120\tx1680\tx2240\tx2800\tx3360\tx3920\tx4480\tx5040\tx5600\tx6160\tx6720\ql\qnatural\pardirnatural

\f0\fs26 \cf0 This installer will guide you through the steps necessary to setup 
\b R 2.11.0 (2010-04-22) for Mac OS X 10.5 (Leopard) or higher
\b0  on your machine.\
}]]></welcome>
    <readme language="en" mime-type="text/rtf"><![CDATA[{\rtf1\ansi\ansicpg1252\cocoartf949\cocoasubrtf540
{\fonttbl\f0\fnil\fcharset0 LucidaGrande;\f1\fnil\fcharset0 Monaco;}
{\colortbl;\red255\green255\blue255;\red1\green0\blue144;}
\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\qc

\f0\b\fs48 \cf0 R 2.11.0\

\b0\fs26 Version 2.11.0 (2010-04-22)\

\fs24 for Mac OS X 10.5 (Leopard) and higher\

\fs22 Universal (32-bit and 64-bit)\
\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\ql\qnatural

\fs24 \cf0 \
This multi-package contains following main components:\
- 
\b R Framework 2.11.0
\b0 \
- 
\b R.app GUI 1.32
\b0 \
\
\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\ql\qnatural
\cf0 \ul \ulc0 Requirements:\
\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\ql\qnatural
\cf0 \ulnone - Mac OS X 10.5 (Leopard) or 10.6 (Snow Leopard)\
\
\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\ql\qnatural

\b \cf0 \ul Note
\b0 :\ulnone  By default the installer upgrades previous Leopard build of R  if present. If you want to keep the previous Leopard build, use\

\f1 \cf2 pkgutil --forget org.r-project.R.Leopard.fw.pkg
\f0 \cf0 \
\
The Cocoa GUI called 
\b R.app
\b0  (32-bit) and 
\b R64.app 
\b0 (64-bit) will be installed by default in your 
\fs22 Applications
\fs24  folder,  
\b R framework
\b0  will be installed in 
\f1 /Library/Frameworks
\f0 .}]]></readme>
    <license language="en" mime-type="text/rtf"><![CDATA[{\rtf1\ansi\ansicpg1252\cocoartf949\cocoasubrtf540
{\fonttbl\f0\fnil\fcharset0 LucidaGrande;}
{\colortbl;\red255\green255\blue255;}
\pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5040\tx5760\tx6480\tx7200\tx7920\tx8640\ql\qnatural

\f0\fs24 \cf0 This software is distributed under the terms of the GNU GENERAL PUBLIC LICENSE Version 2, June 1991.  The terms of this license are in a file called COPYING which you should have received with this software.\
\
If you have not received a copy of this file, you can obtain one via WWW at  http://www.gnu.org/copyleft/gpl.html, or by writing to:\
\
   The Free Software Foundation, Inc.,\
   59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.\
\
A small number of files (the API header files and export files, listed in R_HOME/COPYRIGHTS) are distributed under the LESSER GNU GENERAL PUBLIC LICENSE version 2.1. This can be obtained via WWW at http://www.gnu.org/copyleft/lgpl.html, or by writing to the address above\
\
The above licenses govern distribution, not use.\
\
``Share and Enjoy.''\
}]]></license>
    <choices-outline>
        <line choice="rfw"/>
        <line choice="gui"/>
        <line choice="gui64"/>
    </choices-outline>
    <choice id="rfw" title="R 2.11.0 Framework" tooltip="R 2.11.0 Framework (universal 32-bit and 64-bit)" description="R framework version 2.11.0 (universal 32-bit and 64-bit) for Mac OS X 10.5 (Leopard) or higher. This package contains the full framework necessary for the use of R on Intel and PowerPC Macs.">
        <pkg-ref id="org.r-project.R.Leopard.fw.pkg"/>
    </choice>
    <choice id="gui" title="R GUI 1.32 (32-bit)" tooltip="R for Mac OS X GUI 1.32 Application 32-bit" description="This is the Mac GUI application for R (32-bit version). It requires a compatible R framework to be installed as well. ">
        <pkg-ref id="org.r-project.R.Leopard.GUI.pkg"/>
    </choice>
    <choice id="gui64" title="R GUI 1.32 (64-bit)" tooltip="R for Mac OS X GUI 1.32 Application 64-bit" description="This is the Mac GUI application for R (64-bit version). It requires a compatible R framework to be installed as well." start_selected="pm_gui64_startSelected()" selected="pm_gui64_selected()">
        <pkg-ref id="org.r-project.R.Leopard.GUI64.pkg"/>
    </choice>
    <pkg-ref id="org.r-project.R.Leopard.fw.pkg" installKBytes="75476" version="201151801" auth="Root">#r.pkg</pkg-ref>
    <pkg-ref id="org.r-project.R.Leopard.GUI.pkg" installKBytes="10100" version="1.32" auth="Root">#r-1.pkg</pkg-ref>
    <pkg-ref id="org.r-project.R.Leopard.GUI.pkg">
        <relocate search-id="pkmktoken16">
            <bundle id="org.R-project.R"/>
        </relocate>
    </pkg-ref>
    <pkg-ref id="org.r-project.R.Leopard.GUI64.pkg" installKBytes="9864" version="1.32" auth="Root">#r64.pkg</pkg-ref>
    <pkg-ref id="org.r-project.R.Leopard.GUI64.pkg">
        <relocate search-id="pkmktoken10">
            <bundle id="org.R-project.R64"/>
        </relocate>
    </pkg-ref>
    <locator>
        <search type="token-definitions" id="pkmktoken16-1">
            <plist version="1.0">
                <array>
                    <dict>
                        <key>path</key>
                        <string>/Applications/R.app</string>
                        <key>searchPlugin</key>
                        <string>CheckPath</string>
                    </dict>
                </array>
            </plist>
        </search>
        <search id="pkmktoken16-0" type="script" script="pkmktoken16_combined()">
            <script>
function pkmktoken16_combined() {
	function pkmk_add_results_to_array(results, array) {
		for(i = 0; i &lt; results.length; i++)
			array.push(results[i]);
	}
	var result = new Array();
	var search;
	search = my.search.results['pkmktoken16-1'];
	if(search) pkmk_add_results_to_array(search, result);
	return result;
}
</script>
        </search>
        <search type="script" id="pkmktoken16" script="pkmktoken16_final()">
            <script>
function pkmktoken16_final() {
	var combined = my.search.results['pkmktoken16-0'];
	return combined;
}
</script>
        </search>
        <search type="token-definitions" id="pkmktoken10-1">
            <plist version="1.0">
                <array>
                    <dict>
                        <key>path</key>
                        <string>/Applications/R64.app</string>
                        <key>searchPlugin</key>
                        <string>CheckPath</string>
                    </dict>
                </array>
            </plist>
        </search>
        <search id="pkmktoken10-0" type="script" script="pkmktoken10_combined()">
            <script>
function pkmktoken10_combined() {
	function pkmk_add_results_to_array(results, array) {
		for(i = 0; i &lt; results.length; i++)
			array.push(results[i]);
	}
	var result = new Array();
	var search;
	search = my.search.results['pkmktoken10-1'];
	if(search) pkmk_add_results_to_array(search, result);
	return result;
}
</script>
        </search>
        <search type="script" id="pkmktoken10" script="pkmktoken10_final()">
            <script>
function pkmktoken10_final() {
	var combined = my.search.results['pkmktoken10-0'];
	return combined;
}
</script>
        </search>
    </locator>
</installer-script>