From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/28633 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Denis Miroshnikov Newsgroups: gmane.text.pandoc Subject: How to avoid Pandoc conversion error 137 with rmarkdown::render() Date: Thu, 17 Jun 2021 14:05:20 +0300 Message-ID: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="0000000000008d82f005c4f42ff5" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="37156"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-X-From: pandoc-discuss+bncBDF7NGM4QQDBB7OYVSDAMGQEGZPVKQI-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Thu Jun 17 13:05:36 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-vk1-f191.google.com ([209.85.221.191]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1ltpq3-0009Rz-A1 for gtp-pandoc-discuss@m.gmane-mx.org; Thu, 17 Jun 2021 13:05:35 +0200 Original-Received: by mail-vk1-f191.google.com with SMTP id bc7-20020a0561220d87b02902007377372csf1260756vkb.2 for ; Thu, 17 Jun 2021 04:05:35 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1623927934; cv=pass; d=google.com; s=arc-20160816; b=JzqY1KJJ8qHHtr1gYFCdPN6flnWEsuRVBy/Aw8bJieO+m0CRQSnMZn9BK5s3mWZZtQ aEX2Tpnt8yXWZj3N6H6jG32VBV8TTxyA9bia6V6EGzMmxuxK1txDx6jbVRS5eBNM+9Sq sQqifiY5J+ClRxpq5//CZx17hXDkfgK3Puf0ONK8fjvPGMYwGs8iRwVnsFeMRVRHTMSR r1+u7pjlvOEjHQv0MrZXVDQx0sE2VFF+6hJXVbL/S0SORNik23+5eTiByBdDZPWZpKYg 4VQDyyjLBcQTImJUW/E5xsNZ+zCuQIugaMXj6untnEzl+lV0eX2nIWGEUSscIbouGLdy bUbA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-subscribe:list-archive:list-help:list-post :list-id:mailing-list:precedence:reply-to:to:subject:message-id:date :from:mime-version:sender:dkim-signature:dkim-signature; bh=qISzQn+8Y83MK9kbfBkKBTjrdyvoSg+1hqFgDT0FtOg=; b=Cxgxhi8IO84jRyk4khDj316vWsPNxh7s6y0X1gH5aO8dZztPMdv0/6+D7ZSt/4Bpss NJ2xlRs7xn4WqFPVUKm2rLOIkXDC9nBCYxRAnnHQA4ht3h/JnuCQRBoXMyBwzpGnIQPd j2aIn9xdacZAKXdDlm1dVmHwrKz8WRllSb2UKZF8m6MZFlxszMVw1OwlJF+uBIGuaW33 4R9fh7WQ7J2TN6dBFg+qHzBJEBaOUej0zSRBIRRw6sntgvZDnBDy2ZW7wlyzti2ZPVx1 vBabZMYvcG8cJeFUhsGxqGh4J+z65Jiz1eZ4TlQwxPUVAr0yoDWM7sOd9rt5ler6DQqk Pe6Q== ARC-Authentication-Results: i=2; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NcgUwVf7; spf=pass (google.com: domain of denis.miroshnikov.ts-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::b2b as permitted sender) smtp.mailfrom=denis.miroshnikov.ts-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:mime-version:from:date:message-id:subject:to :x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-subscribe:list-unsubscribe; bh=qISzQn+8Y83MK9kbfBkKBTjrdyvoSg+1hqFgDT0FtOg=; b=ScMf+0pNx/27ZgQ/8CLwXJx60x17xT7aE2opsGbJf4+q/wvOA4409q4472WRgJAUdA c5AvgWJe2mwDM4uZs7AWrGLDX3c0vydn7j3kARPA9uYG/KWGj6SvQyPg2BN2+weXgUMu L/Sczh3akLq0PmIDuvA4rWzcAoCm7s1tzmjxC5fq8fY/SrlztrTfTEKGNsZGR2oQ/Gkn +E/jgx3Wn6IuNT8n3Prziz+7J1DsH3aEB0fMHox10xZTciVEJucdQ5igegvk4v0xXlAh ehPiJ86VVLGMucP/k9RR0BAurt9pvDuRGyBlAfX1TYzyKdiW/6kNFHQP9SqUKIC8Zlgg 0hTw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to:x-original-sender :x-original-authentication-results:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=qISzQn+8Y83MK9kbfBkKBTjrdyvoSg+1hqFgDT0FtOg=; b=B1XzzSUpYqgc+neTcPBq0GXtorX97hkJozxn42h3oHfLs90p9xy/Q5bWWZEA/+gmE9 IlKts9xNb0QmuB0pk7XXbL2TZj7tZvyC1O6N17jZRE68rc/N9RlI+bBW7972pQELZbxh VOd56Es4NII0JhwS9OrAjTTjF1Itmwz9k51Mcl7UGWVAj7ylKy5UFKlQ/DAsxaZMSf2n 1+d0iAxG5utG1qJcw9t7pBrFk93DalWoaQ40k8GDNmZuz1+gJKmYEXWSGqDWIv0MEDI9 QcTIq2A7sLRdl6kFf/SLvSXNrQtoTrNo/MHlenDXBEiMWCoMNnKFiKTeczO0CJPsEO2W u5mg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:mime-version:from:date:message-id:subject :to:x-original-sender:x-original-authentication-results:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=qISzQn+8Y83MK9kbfBkKBTjrdyvoSg+1hqFgDT0FtOg=; b=AxBMWBYR3E2vuRjoQGb9a405q7rmCLPHFcqdt7YbwZlAVGb1FV+A31rL8KrvBN24to 0Dkm4Z1YfxWTZZFBold4dxazA33BBreTkcCh4g5DUDY1DlG6Os8e5Cu9KJ5901TVF6ow +l9C5u0tq3aHOYhnWgmoUZ5m+q0rZ5I7ES42FK1oZUZaQrx+K5kZnUlgKuiDUUGvEK+p wAtYmhNQZU/qgBfg1M7NFlCN7wq78P72/kgXlmLhNE9fdbdJZIz+dZuU6Zmq2oTuAAMu H+b7VW5sL45yaTSGjO+EF3jHxFZZihtPOLMIpIXnKVoA1B8XKPJguWnWA3KollXbFIJf /QPw== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM532UWBIQAfEZJihoX5YwPMPPpe88Q5M5CEXc0efD67EsoPTwB/QD bCb7aK/mkz5ngRGqgox3vmU= X-Google-Smtp-Source: ABdhPJzE0OPke0Ljxt853onl/zzkZktxTdc+L6qBL+406Wu5Zc8R4I0IKwpYKKDSEUiN+/ajS1zkGQ== X-Received: by 2002:a67:878a:: with SMTP id j132mr3740245vsd.18.1623927934399; Thu, 17 Jun 2021 04:05:34 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:a67:f743:: with SMTP id w3ls1237642vso.4.gmail; Thu, 17 Jun 2021 04:05:32 -0700 (PDT) X-Received: by 2002:a37:6615:: with SMTP id a21mr3221470qkc.260.1623927932804; Thu, 17 Jun 2021 04:05:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623927932; cv=none; d=google.com; s=arc-20160816; b=Lo4WPLLZkdUXfJIwXDDpiukyamDl2V8CS/0hkYynjLrhELBEc21J12S7wl8NkW1YJT 7DXuR9dv0p3+1LXB1Gq+HZBRCyA3wJCMfIPshrBh1/7hlBzhw8GxArpcjZGpkOT6+BYS jCLmJq+z1e0qvG92KGMD71n2/ZjMJb62FtGIbmA6lCW9ZAxpCwxD6Q7thSAtmeLz8qk3 hYUn0JDWmo31LUaVneVUmriCJtNpt9CYS1uEHcOgQYH9VUrDU+ylK062K27M4o/zxCiM TRAAFtvn+GwgunW2KcnBYXKWmSghOLqUQHLX4EpyG5VjYWRHkAgpWgSGIfCoxfAtRHLE 1/hw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=to:subject:message-id:date:from:mime-version:dkim-signature; bh=yTjXQifQmNXJjB7RAE7l1L5Szxmo+Ia1u4hzX4SDM7o=; b=Fv0bVVukPrniHvx1sj6U0agHWZyW5m+TjnZ5q3Q6Nm4WNAxRD6xiLlEfX0k2Z0oLlo VfO8NqRpZR93uoHaqVQOKe1omYu+1r+98OxnO02d6semKPBzinTzasqm6gQr9VtX4w2t WIXCw1vfeNrjeg0yq6h6sTDfiIahlOeS1myxsKBevgdFdlPeQGf6kSbhd9YwnjikbjF2 WM/VTvcEH+oAx7Cn2NFP0DuP9FPlPSaUfanP55Dxni20ktjo+Q2Nz+QFvJqLuovKt+fD xFndSVUgc0nB0biSJbOEJgiryyzbwQGSvdcnuqyc69Luh3c8B0Ga8RMQcgbE8dBFyLNy xuww== ARC-Authentication-Results: i=1; gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NcgUwVf7; spf=pass (google.com: domain of denis.miroshnikov.ts-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::b2b as permitted sender) smtp.mailfrom=denis.miroshnikov.ts-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Original-Received: from mail-yb1-xb2b.google.com (mail-yb1-xb2b.google.com. [2607:f8b0:4864:20::b2b]) by gmr-mx.google.com with ESMTPS id g22si219439qkk.4.2021.06.17.04.05.32 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 17 Jun 2021 04:05:32 -0700 (PDT) Received-SPF: pass (google.com: domain of denis.miroshnikov.ts-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::b2b as permitted sender) client-ip=2607:f8b0:4864:20::b2b; Original-Received: by mail-yb1-xb2b.google.com with SMTP id p15so7616754ybe.6 for ; Thu, 17 Jun 2021 04:05:32 -0700 (PDT) X-Received: by 2002:a05:6902:4c8:: with SMTP id v8mr5130994ybs.227.1623927932419; Thu, 17 Jun 2021 04:05:32 -0700 (PDT) X-Original-Sender: denis.miroshnikov.ts-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org X-Original-Authentication-Results: gmr-mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NcgUwVf7; spf=pass (google.com: domain of denis.miroshnikov.ts-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org designates 2607:f8b0:4864:20::b2b as permitted sender) smtp.mailfrom=denis.miroshnikov.ts-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Precedence: list Mailing-list: list pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org; contact pandoc-discuss+owners-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org List-ID: X-Google-Group-Id: 1007024079513 List-Post: , List-Help: , List-Archive: , List-Unsubscribe: , Xref: news.gmane.io gmane.text.pandoc:28633 Archived-At: --0000000000008d82f005c4f42ff5 Content-Type: text/plain; charset="UTF-8" Hi there, Could anyone help me with how to pass additional parameters to override default memory stack size using something like or else with : rmarkdown::render() call to RMD render to DOCx "pandoc +RTS -K100000000 -RTS ...." instead of current defaults: TNX A LOT ... ________________________________________ ERROR in R-console output> output file: report.knit.md /usr/lib/rstudio/bin/pandoc/pandoc +RTS -K512m -RTS report.knit.md --to docx --from markdown+autolink_bare_uris+tex_math_single_backslash+raw_tex --output pandoc111a480ebd13.docx --lua-filter /home/local/R_libs/rmarkdown/rmarkdown/lua/pagebreak.lua --highlight-style tango --reference-doc /home/local/R_libs/s/r/a/template-landscape.docx '--lua-filter=/home/local/R_libs/s/r/a/pagebreak.lua ' Killed Error: pandoc document conversion failed with error 137 Called from: pandoc_convert(input_files, pandoc_to, output_format$pandoc$from, pandoc_output_tmp, citeproc, pandoc_args, !quiet) and process just stopped here ______________________________________ Source R call: rmarkdown::render( input_report_rmd_file, output_file = output_report_file, output_dir = output_report_dir, params = params, output_options = list( reference_docx = paste0( report_rmd_folder, "/a/template-landscape.docx" ), pandoc_args = paste0( "--lua-filter=", report_rmd_folder, "/a/pagebreak.lua" ) ) ) -- You received this message because you are subscribed to the Google Groups "pandoc-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to pandoc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To view this discussion on the web visit https://groups.google.com/d/msgid/pandoc-discuss/CA%2B0L7hymYPOKhAGz_m1VefrfRi%2BDhCxQZf8NhqT6fW2c9qXPRQ%40mail.gmail.com. --0000000000008d82f005c4f42ff5 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hi there,=C2=A0
Could anyone help me w= ith how to pass additional parameters to override default memory=C2=A0 stack size using something like or else with : rmarkdown::render() call to RMD render to DOCx
"pandoc +RTS -K10=
0000000 -RTS ...."  instead of current defaults:

TNX A LOT ...
_____________________= ___________________

ERROR in R-console output&= gt;

output file: report.knit.md

/usr/lib/rstudio/bin/pandoc/pandoc +RTS -K512m -RTS
report.knit.md --to docx --from markdown+autolink_b= are_uris+tex_math_single_backslash+raw_tex --output pandoc111a480ebd13.docx= --lua-filter /home/local/R_libs/rmarkdown/rmarkdown/lua/pagebreak.lua --hi= ghlight-style tango --reference-doc /home/local/R_libs/s/r/a/template-lands= cape.docx '--lua-filter=3D/home/local/R_libs/s/r/a/pagebreak.lua ' =
Killed
Error: pandoc document conversion failed with error 137
Ca= lled from: pandoc_convert(input_files, pandoc_to, output_format$pandoc$from= ,
=C2=A0 =C2=A0 pandoc_output_tmp, citeproc, pandoc_args, !quiet)
and process just stopped=C2=A0 here
_______________________= _______________

Source R call:

=C2=A0 =C2=A0 =C2=A0 rmarkdown= ::render(
=C2=A0 =C2=A0 =C2=A0 =C2=A0 input_report_rmd_file,
=C2=A0 = =C2=A0 =C2=A0 =C2=A0 output_file =3D output_report_file,
=C2=A0 =C2=A0 = =C2=A0 =C2=A0 output_dir =3D output_report_dir,
=C2=A0 =C2=A0 =C2=A0 =C2= =A0 params =3D params,
=C2=A0 =C2=A0 =C2=A0 =C2=A0 output_options =3D li= st(
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 reference_docx =3D paste0(
=C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 report_rmd_folder,
=C2=A0 =C2=A0 = =C2=A0 =C2=A0 =C2=A0 =C2=A0 "/a/template-landscape.docx"
=C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ),
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 pa= ndoc_args =3D paste0(
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 "--= lua-filter=3D",
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 report_rm= d_folder,
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 "/a/pagebreak.l= ua"
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 )
=C2=A0 =C2=A0 =C2=A0 = =C2=A0 )
=C2=A0 =C2=A0 =C2=A0 )

--
You received this message because you are subscribed to the Google Groups &= quot;pandoc-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an e= mail to pand= oc-discuss+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org.
To view this discussion on the web visit https://gro= ups.google.com/d/msgid/pandoc-discuss/CA%2B0L7hymYPOKhAGz_m1VefrfRi%2BDhCxQ= Zf8NhqT6fW2c9qXPRQ%40mail.gmail.com.
--0000000000008d82f005c4f42ff5--