RE: [R] Rterm

About this list Date view Thread view Subject view Author view Attachment view

From: Johannes SCHNITZLER (schnitzlerj@lyon.who.int)
Date: Fri 07 May 2004 - 21:56:57 EST


Message-id: <AD1C47A0C9C12C46987E2D31EE1E63B4040308@lps001.lyon.who.int>

Dear Jason,

Thank you very much, the first problem is solved.
It was a corrupted file. After downloading a new version rterm works!

The second question:
I was trying to set the working directory while I'm calling a script
with Rterm.exe from the command line.
Something like
c:\Program Files\R\rw1090\bin\rterm.exe --vanilla "workingdir=c:/data/"
<test.r --args "Arg1" "Arg2"

Thank's again

Johannes

-----Original Message-----
From: Jason Turner [mailto:jasont@indigoindustrial.co.nz]
Sent: 07 May 2004 12:15
To: Johannes SCHNITZLER
Cc: r-help@stat.math.ethz.ch
Subject: Re: [R] Rterm

> With R1090
>
> C:\Program Files\R\rw1090\bin\rterm.exe --vanilla <test.r --args
"Arg1"
> "Arg2"
>
> There is the error message: Rterm.exe is not a valid Win32 application
>
> I tried on Windows 2000 and XP
>
> I couldn't find out what to change.

Weird. Did you install in C:\Program Files\R\rw1090\? On my XP
machine,
it did, and rterm is valid. The above works from a command prompt,
provided I wrap the executable path and name in quotes. Failing that,
is
it a corrupt binary install?

Here's the md5 of my (working) R-1.9.0, downloaded from CRAN (NOT the
patched version, and not built by me)

C:\Program Files\R\rw1090\bin> md5sum.exe Rterm.exe
2565cd848bbd86b964624a0490352da2 *Rterm.exe

> I would like to set the working directory as well, in the same
command,
> when calling an r script with rterm.exe from the command line.
>
> Is there a way to do this?

Inside R: setwd("your/path/here") With the usual warning about using
"/"
slashes, or "\\" slashes (doubled). I just stick with "/".

Cheers

Jason

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Mon 31 May 2004 - 23:05:08 EST