<?xml version="1.0" encoding="utf-8"?>
<installer-gui-script minSpecVersion="1">
    <title>R %VER% for macOS</title>
    <options customize="allow" require-scripts="false"/>
    <choices-outline>
        <line choice="org.R-project.R.fw.pkg"/>
        <line choice="org.R-project.R.GUI.pkg"/>
        <line choice="org.r-project.x86_64.tcltk.x11"/>
        <line choice="org.r-project.x86_64.texinfo"/>
    </choices-outline>

    <choice id="org.R-project.R.fw.pkg" visible="true" title="R %VER% Framework" tooltip="R %VER% Framework" description="R framework version %VER% (64-bit, Intel Macs only) for macOS 10.13 (High Sierra) or higher. This package contains the full framework necessary for the use of R.">
        <pkg-ref id="org.R-project.R.fw.pkg"/>
    </choice>
    <pkg-ref id="org.R-project.R.fw.pkg" version="%VER%" onConclusion="none">R-fw.pkg</pkg-ref>

    <choice id="org.R-project.R.GUI.pkg" visible="true" title="R GUI %GUIVER%" tooltip="R for Mac OS X GUI %GUIVER% Application" description="This is the Mac GUI application for R. It requires a compatible R framework to be installed as well.">
        <pkg-ref id="org.R-project.R.GUI.pkg"/>
    </choice>
    <pkg-ref id="org.R-project.R.GUI.pkg" version="%GUIVER%" onConclusion="none">R-app.pkg</pkg-ref>

    <choice title="Tcl/Tk 8.6.6" id="org.r-project.x86_64.tcltk.x11" tooltip="Tcl/Tk 8.6.6 (X11)" description="Tcl/Tk 8.6.6 build (X11 version) for Mac OS X 10.6 and higher (64-bit, Intel). Needed for the tcltk R package.">
        <pkg-ref id="org.r-project.x86_64.tcltk.x11"/>
    </choice>
    <pkg-ref id="org.r-project.x86_64.tcltk.x11" version="8.6.6" onConclusion="none">tcltk.pkg</pkg-ref>

    <choice title="Texinfo 6.7" id="org.r-project.x86_64.texinfo" tooltip="Texinfo 6.7" description="Texinfo 6.7 for macOS X 10.13 and higher (64-bit Intel). Needed for building documentation when compiling R packages from sources.">
        <pkg-ref id="org.r-project.x86_64.texinfo"/>
    </choice>
    <pkg-ref id="org.r-project.x86_64.texinfo" version="6.7" onConclusion="none">texinfo.pkg</pkg-ref>

    <welcome file="welcome.rtf" uti="public.rtf"/>
    <license file="license.rtf" uti="public.rtf"/>
    <readme file="readme.rtf" uti="public.rtf"/>
    <background file="background.tiff" mime-type="image/tiff" scaling="proportional"/>
    <!-- <background-darkAqua file="background.tiff" mime-type="image/tiff" scaling="proportional"/> -->
</installer-gui-script>