Skip to content

R tools help

8 messages · Gabor Grothendieck, Dirk Eddelbuettel, Duncan Murdoch +1 more

#
If you use Rcmd.bat from batchfiles (its a self-contained batch file
that you place anywhere on your path which will find out where R
is by looking in the registry and then run it and will also add MiKTeX
and Rtools to your path temporarily as well):

http://batchfiles.googlecode.com

then you won't have to change your path in the first place.  There is also
some relevant info there if you do want to change it anyways and
info on packages.
On Sun, Mar 1, 2009 at 12:24 PM, Ajay ohri <ohri2007 at gmail.com> wrote:
#
On 1 March 2009 at 22:54, Ajay ohri wrote:
| Dear List,
| I am trying to create a R package and having some issues with setting the
| path on a Windows XP .
| 
| Could you point me to a tutorial that helps in creating R packages .........

http://lmgtfy.com/?q=create+a+R+package

Seriously, there is one entire manual dedicated to 'Writing R extensions',
and there are a number of tutorials floating around on the web, for example
Peter Rossi (at U of Chicago's Booth Business school) has one.

| Also I tried installing Linux using the Windows installer wubi but it failed
| repeatedly and everytime it resets my system clock . Do you have any tools
| etc for easy Linux installations for a Windows user..

http://lmgtfy.com/?q=installing+linux+for+windows+user

There is also an entire manual on 'R installation and administration', and
there must be a gazillion tutorials on the web.  Ubuntu seems to have a large
market and mind share, its installation cdrom is a live cdrom you can test
fist, and it has very good R support via binaries on CRAN.

Good luck,  Dirk
#
On 01/03/2009 12:24 PM, Ajay ohri wrote:
I gave a tutorial on this at last year's useR meeting:  the slides are 
online.  Here's a link to all the online material from that meeting:

http://www.statistik.uni-dortmund.de/useR-2008/abstracts/AbstractsByAuthor.html

Duncan Murdoch
#
On Sun, Mar 1, 2009 at 1:05 PM, Ajay ohri <ohri2007 at gmail.com> wrote:
Do you mean you placed Rcmd.bat in C:\Rtools?

What you want to do is issue the command PATH from the Windows
console and put it somewhere on the path shown.

I keep a C:\bin directory that I put my executables in and I have that on
my PATH so in my case that's where I put Rcmd.bat .
That won't be a problem with R.  Rcmd.bat temporarily modifies your
path by placing
the correct items ahead of all the others;  however, if you have put
rtools\bin on your path
note that you could be making problems for yourself with other
programs since rtools\bin
includes find.exe whose name conflicts with the native find that comes
with Windows.
This was driving me crazy as some Windows batch scripts would not run
properly until I
finally discovered what was going on.
That may be what you added to your path but its unlikely to be your path.  Type:

path

at the windows console to find out what your path is.
Your main source should be the R Administration and Installation manual
(available on the Help menu from within R) and then you can use other
sources as adjuncts if you wish.  If there are conflicts in the
instructions the
R manual will likely be the one that is correct.