Thanks for the advice. I tried to install the package as instructed. Command
and results below:

> install.packages("patchDVI", repos="http://R-Forge.R-project.org")
Installing package(s) into ‘C:/Users/nova/Documents/R/win-library/2.13’
(as ‘lib’ is unspecified)
Warning message:
In getDependencies(pkgs, dependencies, available, lib) :
  package ‘patchDVI’ is not available (for R version 2.13.0)

I then ran the tests in Rtools. I suspect the fact that I have I have
installed R in a path containing spaces may be the problem - maybe also for
the Sweave part. Is there any other remedy but to re-install R or can I
insert a link in a path without spaces  ?

>  library("tools")
>      testInstalledBasic("both")
running strict specific tests
  running code in ‘eval-etc.R’
unable to open output file
FAILED
[1] 1
Warning message:
running command '"C:/PROGRA~1/R/R-213~1.0/bin/i386/R" CMD BATCH --vanilla
--no-timing "eval-etc.R" "eval-etc.Rout"' had status 2
>      testInstalledPackages("base")
Error in setwd(outDir) : cannot change working directory
>      testInstalledPackages("recommended")
Error in setwd(outDir) : cannot change working directory



On 16 June 2011 14:10, Duncan Murdoch <murdoch.duncan@gmail.com> wrote:

> On 11-06-16 7:50 AM, christiaan pauw wrote:
>
>> Hi everybody.
>>
>> Was the problem below ever solved? I have the same problem on Windows 7
>> with
>> R 2.13.0 and LyX 2 - everything freshly installed. My Rweave.bat and
>> MakeSweave.R files are similar to below (I followed
>> http://wiki.lyx.org/uploads/**LaTeX/SweaveR/lyx_with_r_and_**
>> sweave_instructions.pdf<http://wiki.lyx.org/uploads/LaTeX/SweaveR/lyx_with_r_and_sweave_instructions.pdf>
>> )
>>
>
> I don't use LyX or that batch file, I use some code I wrote that's in the
> patchDVI package (https://r-forge.r-project.**org/R/?group_id=233<https://r-forge.r-project.org/R/?group_id=233>)
> that I wrote.  You might want to try it.
>
> The single line to run Sweave and pdflatex is
>
> Rscript -e "patchDVI::SweavePDF( '$1' )"
>
> where $1 is the name of the .Rnw file.  If that doesn't work for you, I
> might be able to help with debugging.
>
> Duncan Murdoch
>
>

	[[alternative HTML version deleted]]

