r sweave does not insert images

Hi. I'm using R Sweave to write a latex document. When I compile with XeLaTeX I have no problems but XeLaTeX does not allow me to insert images into my document. When changing to pdfLaTeX (which does allow inserting images) it throws me the following error:

Running error C: /PROGRA~1/MiKTeX/miktex/bin/x64/pdflatex.exe (exit code 1)

the path of pdfLaTeX is:

Sys.which ('pdflatex')

 
                                              pdflatex
"C: \\ PROGRA ~ 1 \\ MiKTeX \\ miktex \\ bin \\ x64 \\ pdflatex.exe"

Your help please

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.