]> git.lyx.org Git - features.git/commitdiff
Do not use needauth when only exporting code
authorScott Kostyshak <skostysh@lyx.org>
Mon, 30 Apr 2018 00:06:16 +0000 (20:06 -0400)
committerScott Kostyshak <skostysh@lyx.org>
Sun, 6 May 2018 23:50:55 +0000 (19:50 -0400)
We have a couple of converters (using Sweave and knitr to "tangle"
an intermediate file) that are used for exporting code chunks
contained in a .lyx file. Since the code is just exported to a text
file and is not executed, needauth is not necessary.

(cherry picked from commit 065e37e96ff37dd891e47aede84258fd9adf23cf)

lib/configure.py
status.23x

index ac4f0fd0cbbeab8b631189a8d105c51e2dde3bf5..a2b651e1c901a7fbe3ab58ff8cc2de47b5051255 100644 (file)
@@ -823,12 +823,12 @@ def checkConverterEntries():
 \converter knitr   dviluatex  "%%"     "needauth"'''])
     #
     checkProg('a Sweave -> R/S code converter', ['Rscript --verbose --no-save --no-restore $$s/scripts/lyxstangle.R $$i $$e $$r'],
-        rc_entry = [ r'\converter sweave      r      "%%"    "needauth"',
-                     r'\converter sweave-ja   r      "%%"    "needauth"' ])
+        rc_entry = [ r'\converter sweave      r      "%%"    ""',
+                     r'\converter sweave-ja   r      "%%"    ""' ])
     #
     checkProg('a knitr -> R/S code converter', ['Rscript --verbose --no-save --no-restore $$s/scripts/lyxknitr.R $$p$$i $$p$$o $$e $$r tangle'],
-        rc_entry = [ r'\converter knitr      r      "%%"    "needauth"',
-                     r'\converter knitr-ja   r      "%%"    "needauth"' ])
+        rc_entry = [ r'\converter knitr      r      "%%"    ""',
+                     r'\converter knitr-ja   r      "%%"    ""' ])
     #
     checkProg('an HTML -> LaTeX converter', ['html2latex $$i', 'gnuhtml2latex',
         'htmltolatex -input $$i -output $$o', 'htmltolatex.jar -input $$i -output $$o'],
index a740f49e7137cc4be04eb75d61055365cd01621b..48a1330be0b8f520af6e9034ce60fe233c6d9f7f 100644 (file)
@@ -25,6 +25,8 @@ What's new
 - Added LFUN_MASTER_BUFFER_EXPORT, which exports the master buffer, along
   the lines of LFUN_MASTER_BUFFER_VIEW (bug 11118).
 
+- Needauth is not needed for exporting R code (only when executing the code).
+
 
 * TEX2LYX IMPROVEMENTS