def METHOD_NAME(cntlr, options, filesource, filing, *args, **kwargs):
    edgarRenderer = filing.edgarRenderer
    # obtain R files from
    url = "FilingSummary.xml"
    # note that reportZip operations are on filing.reportZip as EdgarRenderer has finished
    # if needing to re-use EdgarRenderer.reportZip, set it again to filing.reportZip
    if filing.reportZip and url in filing.reportZip.namelist():
        filing.setReportZipStreamMode('r') # switch stream to read mode
        fileLikeObj = filing.reportZip.open(url)
    elif edgarRenderer.reportsFolder and os.path.exists(os.path.join(edgarRenderer.reportsFolder, url)):
        fileLikeObj = os.path.join(edgarRenderer.reportsFolder, url)
    else:
        return
    edgarRenderer.logDebug("Generate all-reports htm file")
    rAll = [b'''
        <html>
          <head>
            <title>View Filing Data</title>
            <link rel="stylesheet" type="text/css" href="report.css"/>
            <script type="text/javascript" src="Show.js">/* Do Not Remove This Comment */</script>
            <script type="text/javascript">
                            function toggleNextSibling (e) {
                            if (e.nextSibling.style.display=='none') {
                            e.nextSibling.style.display='block';
                            } else { e.nextSibling.style.display='none'; }
                            }</script>
          </head>
          <body>
          ''']
    filingSummaryTree = etree.parse(fileLikeObj)
    for htmlFileName in filingSummaryTree.iter(tag="HtmlFileName"):
        rFile = htmlFileName.text.strip()
        edgarRenderer.logDebug("Appending report file {}".format(rFile))
        if filing.reportZip and rFile in filing.reportZip.namelist():
            with filing.reportZip.open(rFile) as f:
                rAll.append(f.read())
        elif edgarRenderer.reportsFolder and os.path.exists(os.path.join(edgarRenderer.reportsFolder, rFile)):
            rFilePath = os.path.join(edgarRenderer.reportsFolder, rFile)
            with open(rFilePath, mode='rb') as f:
                rAll.append(f.read())
            os.remove(rFilePath)
        else:
            continue
    rAll.append(b'''
          </body>
        </html>
        ''')
    allHtmFile = "Rall.htm"
    if filing.reportZip:
        filing.setReportZipStreamMode('a') # switch stream to append mode (was read mode above)
        filing.reportZip.writestr(allHtmFile, b"".join(rAll))
    else:
        with open(os.path.join(edgarRenderer.reportsFolder, allHtmFile), mode='wb') as f:
            f.write(b"".join(rAll))
    edgarRenderer.renderedFiles.add(allHtmFile)
    edgarRenderer.logDebug("Write {} complete".format(allHtmFile))