hi,

i looks like the markdown preview is currently not doing anything except 
throwing errors when used on a windows installation. i could reproduce the 
issue with a clean install of the current windows installer of RKWard for 
windows 10.

i did some investigating and could track the issue down to a non-functional 
pandoc.exe in the installer bundle.

this triggered an error in rk.check.for.pandoc(), but you don't need the 
function, you can also try this directly:

  pandoc_path <- Sys.which("pandoc")
  shell(pandoc_path)

the error i get is:

  KShimgen 0.4.3: Failed to start target3
  Warning message:
  In shell(pandoc_path) :
  'C:\PROGRA~1\RKWard\bin\pandoc.exe' execution failed with error code 3

after confirming that this works just fine

  notepad <- Sys.which("notepad")
  shell(notepad)

i tried calling "pandoc.exe --version" from cmd.exe and got the same KShimgen 
error. i then manually installed the recent windows version of pandoc from
https://github.com/jgm/pandoc/releases and replaced the bundled .exe with the 
manually installed one. this immediately fixes the failing preview.

both files had significantly different file sizes -- the bundled .exe was 
~2MB, while the downloaded one is ~110MB.

any ideas what causes this?
 

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

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to