| 1 |
A new version of the Windows batchfiles is available. |
| 2 |
|
| 3 |
CHANGES |
| 4 |
|
| 5 |
The key change is the new R.bat utility. R.bat has a new interface and |
| 6 |
extended functionality covering many of the other prior utilities. (These |
| 7 |
older utilities are no longer needed and have been removed.) |
| 8 |
|
| 9 |
Unlike R.bat which requires no configuration the new Rpathset.bat utility is |
| 10 |
configured by manually changing the Windows batch SET statements in it. The |
| 11 |
main advantage is just that it is very simple internally which may be |
| 12 |
advantageous in some situations involving customization. |
| 13 |
|
| 14 |
A new pdf document accompanies the utilities providing more detail. |
| 15 |
|
| 16 |
OVERVIEW |
| 17 |
|
| 18 |
These are self contained independent no-install Windows batch, javascript and |
| 19 |
.hta files. Just place any that you wish to use on your Windows PATH. |
| 20 |
|
| 21 |
R.bat |
| 22 |
|
| 23 |
R.bat allows one to run R without setting any environment variables, registry |
| 24 |
keys or any modification of the Windows path. Just download this utility, |
| 25 |
place it in your Windows path and then to launch Rgui.exe from the Windows cmd |
| 26 |
line do this: |
| 27 |
|
| 28 |
R gui |
| 29 |
|
| 30 |
R.bat locates R, MiKTeX and Rtools using the registry or heuristics and then |
| 31 |
runs the subcommand indicated by the first argument. |
| 32 |
|
| 33 |
In addition to the gui subcommand, the following subcommands are available: cd, |
| 34 |
cmd, dir, gui, help, ls, path, R, script, show, SetReg, tools, touch. |
| 35 |
|
| 36 |
Some examples are: |
| 37 |
|
| 38 |
R -- run R.exe |
| 39 |
R gui -- run Rgui.exe |
| 40 |
R CMD build mypkg -- run Rcmd.exe build mypkg |
| 41 |
R script myScript.R -- run Rscript.exe myScript.R |
| 42 |
|
| 43 |
R dir -- list directories in R_ROOT, typically those in C:\Program Files\R |
| 44 |
R ls -- same |
| 45 |
R help -- help info |
| 46 |
R show -- show R_ variable values used (R_ROOT, R_HOME, R_VER, R_ARCH, etc.) |
| 47 |
|
| 48 |
R path -- temporarily add R, MiKTeX and Rtools to the Windows path |
| 49 |
R tools -- similar but only add MiKTeX and Rtools to the Windows path |
| 50 |
|
| 51 |
Except for R touch (which updates the date on your R_HOME directory) and |
| 52 |
R SetReg (which calls RSetReg.exe to update the registry with your R version), |
| 53 |
R.bat makes no permanent changes to your system. |
| 54 |
|
| 55 |
Rpathset.bat |
| 56 |
|
| 57 |
Rpathset.bat temporarily sets the Windows path to R, Rtools and MiKTeX |
| 58 |
based on SET statements that the user can configure manually. It is an |
| 59 |
alternative to R.bat that lacks R.bat's "no configuration" nature but may be |
| 60 |
preferred in some situations due to its internal simplicity. |
| 61 |
|
| 62 |
Also Rpathset.bat is more likely to work on systems that have not been |
| 63 |
tested given its simplicity. (The utilities were tested on 32 bit Windows |
| 64 |
Vista and 64 bit Windows 8 systems.) |
| 65 |
|
| 66 |
Other |
| 67 |
|
| 68 |
Other commands which continue to be available are copydir.bat, movedir.bat, |
| 69 |
el.js, clip2r.js and find-miktex.hta . These copy and move R libraries, |
| 70 |
run a command in elevated mode (i.e. as Administrator), copy the clipboard to |
| 71 |
a running R instance and find MiKTeX. |
| 72 |
|
| 73 |
More Info |
| 74 |
|
| 75 |
The newly created sqldf discussion list will now be used for discussion of |
| 76 |
the batch files as well. |
| 77 |
|
| 78 |
Home Page: http://batchfiles.googlecode.com |
| 79 |
Discuss: http://groups.google.com/group/sqldf ** NEW ** |
| 80 |
|
| 81 |
Download: http://cran.r-project.org/contrib/extra/batchfiles |
| 82 |
SVN: https://code.google.com/p/batchfiles/source |
| 83 |
|