first draft of an RMarkdown export plugin

meik michalke meik.michalke at uni-duesseldorf.de
Wed Oct 17 15:48:42 BST 2018


hi,

some further tweaks to the export plugin, most significantly it exports HTML 
vignettes properly:
 https://galactica.psycho.hhu.de/seafile/f/37d018e8bb554c3385b2/
you should also upgrade XiMpLe and then rkwarddev one more time to the most 
recent develop branch:

 library(devtools)
 install_github("rkward-community/XiMpLe", ref="develop")
 install_github("rkward-community/rkwarddev", ref="develop")

(i fixed an issue in XiMpLe autoreplacing "&", "<" and ">" with HTML entities 
in the generated XML code, which rendered embedded JavaScript useless if those 
symbols are used. code in <![CDATA[ ]]> nodes is now save.)

btw: i noticed that the preview of vignettes produces a fine HTML document, 
but RKWard doesn't really render it as a vignette. as far as i know, by 
convention vignettes should be configured like

 output:
   rmarkdown::html_vignette

in the YAML header, and render() should also use "rmarkdown::html_vignette" as 
output format. if the two don't match, all further configuration in that 
context is skipped, like the presence of a TOC. so the preview can be very 
confusing, if you correctly defined a TOC but it just won't show. could you 
parse the header between the two "---" for the presence of 
"[[:space:]]*rmarkdown::html_vignette" and adjust the rendering accordingly?

also, could you have a look at this:

Am Montag, 15. Oktober 2018, 00:55:14 CEST schrieb meik michalke:
> i've now also replaced output_file with output_dir for those cases. but
> there's one issue i can't resolve:
> 
> when the plugin starts with one of those two options and targenFile is not
> set yet, you can't submit although i believe i've defined the "required"
> rules accordingly. notably, you only have to scroll to any other format
> option and back again to make the submit button available. how can i fix
> that?


viele grüße :: m.eik


-- 
  dipl. psych. meik michalke
  institut f"ur experimentelle psychologie
  abt. f"ur diagnostik und differentielle psychologie
  heinrich-heine-universit"at d-40204 d"usseldorf
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/rkward-devel/attachments/20181017/871f95ca/attachment.sig>


More information about the rkward-devel mailing list