Skip to content
Prev 76710 / 398502 Next

TeX distribution on Windows

On 9/5/05, G??ran Brostr??m <gb at stat.umu.se> wrote:
As others have commented MiKTeX works with R.  Duncan Murdoch's
site mentions some ways to circumvent its one limitation.  This is
automated in the miktex-update.bat file in 

http://cran.r-project.org/contrib/extra/batchfiles/

for Windows XP systems.  It will locate the current version of R on
your system using
the registry and then copy the appropriate .fd and .sty files from your R 
distribution to the appropriate MiKTeX directory.   Assuming R and MiKTeX
are installed, just issue this command without arguments:

   miktex-refresh

at the Windows console.  Using that command, all you have to do is install
MiKTeX without any customizations and then run the above command to
copy the mentioned files from R to MiKTeX.

(If any of the TeX files in the R distribution change then you should rerun
the above command after each install of R.  If they have not changed
you can run it or not, it does not matter.)

Also in batchfiles, is the following Windows XP command:

   Rfind

which when issued without arguments will list the location on your system of a 
number of programs used with R including MiKTeX.   It does not actually
modify any environment variables or any other aspect of your system.