From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.text.pandoc/28652 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Denis Miroshnikov Newsgroups: gmane.text.pandoc Subject: Re: How to avoid Pandoc conversion error 137 with rmarkdown::render() Date: Thu, 17 Jun 2021 23:41:20 -0700 (PDT) Message-ID: <6558ad7e-09ac-4fe4-9fcb-87f6bfa62938n@googlegroups.com> References: Reply-To: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_Part_394_685297616.1623998480901" Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="19604"; mail-complaints-to="usenet@ciao.gmane.io" To: pandoc-discuss Original-X-From: pandoc-discuss+bncBDF7NGM4QQDBBEMAWGDAMGQELS6KEBA-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Fri Jun 18 08:41:24 2021 Return-path: Envelope-to: gtp-pandoc-discuss@m.gmane-mx.org Original-Received: from mail-ot1-f58.google.com ([209.85.210.58]) by ciao.gmane.io with esmtps (TLS1.3:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.92) (envelope-from ) id 1lu8Bw-0004va-5F for gtp-pandoc-discuss@m.gmane-mx.org; Fri, 18 Jun 2021 08:41:24 +0200 Original-Received: by mail-ot1-f58.google.com with SMTP id 43-20020a9d0d2e0000b02903f9def84058sf5358859oti.9 for ; Thu, 17 Jun 2021 23:41:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=20161025; h=sender:date:from:to:message-id:in-reply-to:references:subject :mime-version:x-original-sender:reply-to:precedence:mailing-list :list-id:list-post:list-help:list-archive:list-subscribe :list-unsubscribe; bh=+n+fIvlBUVYKO6GRPsVkuKO3WsONm8H5q86WSBCVXuU=; b=McBLZ+5TSkRe5E4+vpEVUiWNZHAw2YTEOLB/3LRlAbCz+LcL0Vgw2hi95OhtrNsXCJ uRYASHWogXAPp/SISNigAZ1qvYFkYzpYDfuMNGwTh08FPeQwF5UXVvhSgTZO8pBQ+i4A a4ar5+XWsjoboMb3p8+bvv2SLokOkayhRudueiASjqy6nXTZ5uS1X/C9EUcWsiYgJ07c sFUlU6GK8+yGtL/1LkqnoK0f0WEnaqMIfsFjvbS9gIU0I64KMWizXo+SFscPW3XQC6B5 Z9QqdS3JOpyNNWviw1KD5RpXYwkZ0aFWLR5hfPqui5F1+mAlOcSDt8SswE4b6qRs0JFL Gauw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:message-id:in-reply-to:references:subject:mime-version :x-original-sender:reply-to:precedence:mailing-list:list-id :list-post:list-help:list-archive:list-subscribe:list-unsubscribe; bh=+n+fIvlBUVYKO6GRPsVkuKO3WsONm8H5q86WSBCVXuU=; b=kOc2/OFlQceFFjZIG2BOZ7Sbajd54J4HhQZlJhvQ+pdalbTsjFbc7vqM6+rsXI7qw9 YFAxUai+oq5hj72U9oUR7Tq0fbspTjGQAB3SlDOFAr1AuoV91tnlJUp3w4f/8NCg0bc4 3jS3vYAmDVh2rmYhw2ARlTFbD9NOq9U8DgpJEj/P+hRK5sNt/T43wBs0xGTTq4elJAZu ziW/hvy6ZbZuvoP7WimrwLiWDpTBwRa7wnsnjcYX3nkFHaJSqKAU+awjRjqvv8YmpbmQ Jky6nXqCvf54rQfYjtEHLd8KsPg5CTb8EpH8W4t3gd96S0hfefEDuMS176K0f0K6sxKA p5+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=sender:x-gm-message-state:date:from:to:message-id:in-reply-to :references:subject:mime-version:x-original-sender:reply-to :precedence:mailing-list:list-id:x-spam-checked-in-group:list-post :list-help:list-archive:list-subscribe:list-unsubscribe; bh=+n+fIvlBUVYKO6GRPsVkuKO3WsONm8H5q86WSBCVXuU=; b=CMlPUB91xLvws7iAp9DxIlGAAodfUBxuadKQvrz/RKFgQRkMevzHoyc5HTQLmWdFA+ LGE4C68HeWHpYHGjretu/JxMHIVaBfaGlx/98cksyLbYtqJiKTAI62SsBE8q1XF06RPq umMvToyEUl3II7cS70h7NJjeV2lLM3p9OT+I0bqU/Zj4NR9u6f2sS0ZJ4cwEZzDzQHjK 9jmX4Vwpn0pPq4jW+gV7f1rwAnDbms5i7bBHQvWqH1mXoqg1bdk2pBcd/lZNMWd7iDHo mKqLhCqRx/NFjn8rZ7lMA9BFKQeImGUZagbmh/T7twHpNK26j4e8tMWXvcgvzVSuD+l7 23ug== Original-Sender: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org X-Gm-Message-State: AOAM532qyzWy4X2tdqcCcskLAnLGuABr+lKYDlB0PCt0rwySNkcYXPMc ar8kQ1ZxkhkyBi7zNNVk1mc= X-Google-Smtp-Source: ABdhPJxJeQf6wPZZokRQ0sB6EO6T6nlC+DKVKIMxFnUzgkqmg2ycoFAGORY7BPk+BS/2uelA408F2Q== X-Received: by 2002:a05:6808:f94:: with SMTP id o20mr3616049oiw.108.1623998483095; Thu, 17 Jun 2021 23:41:23 -0700 (PDT) X-BeenThere: pandoc-discuss-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org Original-Received: by 2002:aca:6285:: with SMTP id w127ls2633614oib.4.gmail; Thu, 17 Jun 2021 23:41:21 -0700 (PDT) X-Received: by 2002:aca:e0d6:: with SMTP id x205mr6211051oig.109.1623998481503; Thu, 17 Jun 2021 23:41:21 -0700 (PDT) In-Reply-To: X-Original-Sender: denis.miroshnikov.ts-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org 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:28652 Archived-At: ------=_Part_394_685297616.1623998480901 Content-Type: multipart/alternative; boundary="----=_Part_395_1958067173.1623998480901" ------=_Part_395_1958067173.1623998480901 Content-Type: text/plain; charset="UTF-8" Help please On Thursday, June 17, 2021 at 2:05:35 PM UTC+3 Denis Miroshnikov wrote: > 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/6558ad7e-09ac-4fe4-9fcb-87f6bfa62938n%40googlegroups.com. ------=_Part_395_1958067173.1623998480901 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Help please

On Thursday, June 17, 2021 at 2:05:35 PM UTC+3 Denis Miroshnikov= wrote:
Hi there,=C2=A0
Could anyone help me with h= ow 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 -K100000000 -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_bare_uris+tex_math_= single_backslash+raw_tex --output pandoc111a480ebd13.docx --lua-filter /hom= e/local/R_libs/rmarkdown/rmarkdown/lua/pagebreak.lua --highlight-style tang= o --reference-doc /home/local/R_libs/s/r/a/template-landscape.docx '--l= ua-filter=3D/home/local/R_libs/s/r/a/pagebreak.lua '
Killed
Erro= r: pandoc document conversion failed with error 137
Called from: pandoc_= convert(input_files, pandoc_to, output_format$pandoc$from,
=C2=A0 =C2= =A0 pandoc_output_tmp, citeproc, pandoc_args, !quiet)

and proc= ess just stopped=C2=A0 here
______________________________________<= br>
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 outp= ut_dir =3D output_report_dir,
=C2=A0 =C2=A0 =C2=A0 =C2=A0 params =3D par= ams,
=C2=A0 =C2=A0 =C2=A0 =C2=A0 output_options =3D list(
=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 pandoc_args =3D past= e0(
=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_rmd_folder,
=C2= =A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 "/a/pagebreak.lua"
=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://groups.google.com/d= /msgid/pandoc-discuss/6558ad7e-09ac-4fe4-9fcb-87f6bfa62938n%40googlegroups.= com.
------=_Part_395_1958067173.1623998480901-- ------=_Part_394_685297616.1623998480901--