Re: [R] Automating R script with Windows 7

2012-07-04 Thread Bart Joosen
I would try first without the task scheduler: Make a .bat file and run this from the command line. This way you can see what is going on without the flashing window that is opened and closed immeadiately. maviney wrote > > > I tried to task schedule, using the following code > > "C:\Program F

Re: [R] Automating R script with Windows 7

2012-07-03 Thread Jeff Newmiller
I did not suggest that you don't HAVE an operating system... simply that you don't know how to use yours. However you accomplish starting programs automatically, you WILL need to specify both the R interpreter (which you do seem to be accomplishing) and the name of the script you wish to run (w

Re: [R] Automating R script with Windows 7

2012-07-03 Thread maviney
Thank you for your help So i have tried many ways on different computers, but i believe i have an operating system, as I open RScript up in my local directory it just flashes at me and them disappears I tried to task schedule, using the following code "C:\Program Files\R\R-2.12.1\bin\i386\Rscri

Re: [R] Automating R script with Windows 7

2012-07-03 Thread Bart Joosen
In R you should slashes instead of backslashes: C:\PROGRA~1\R\R-2.11.1\bin\RScript.exe C:/Users/Vincent/Documents/temp/test.r Bart -- View this message in context: http://r.789695.n4.nabble.com/Automating-R-script-with-Windows-7-tp4446693p4635260.html Sent from the R help mailing list archive at

Re: [R] Automating R script with Windows 7

2012-07-03 Thread Ista Zahn
On Mon, Mar 5, 2012 at 2:47 PM, vincent.deluard wrote: > Hi Jim, > > Please disregard my earlier post -- I have done some research and realized > the space between after "program " was the the issue. I can now open > RScript.exe from the command prompt using the abbreviated form: > > C:\PROGRA~1\R

Re: [R] Automating R script with Windows 7

2012-07-03 Thread Jeff Newmiller
Sounds like operating system troubles, not R troubles. If you want help with invoking R, please take a deep breath, read the FAQs and the posting guide, and tell us exactly what you did at the command line if you still think R is the problem. Note that any problems you may be having with the ac

Re: [R] Automating R script with Windows 7

2012-07-02 Thread maviney
hi i have tried all day in getting this to work, but i have fail I cant even schedule it to open up rscript, even by manually i cant open rscript Pls help -- View this message in context: http://r.789695.n4.nabble.com/Automating-R-script-with-Windows-7-tp4446693p4635237.html Sent from the R h

Re: [R] Automating R script with Windows 7

2012-03-05 Thread vincent.deluard
Hi Jim, Please disregard my earlier post -- I have done some research and realized the space between after "program " was the the issue. I can now open RScript.exe from the command prompt using the abbreviated form: C:\PROGRA~1\R\R-2.11.1\bin\RScript.exe >From your earlier post, I understand the

Re: [R] Automating R script with Windows 7

2012-03-05 Thread Tyler Ritchie
You are looking to run R in batch mode see How to run R in batch mode [1] and the Quick-R on Batch Processing [2] [1] http://turing.une.edu.au/~stat356/Rbatch.html [2] http://www.statmethods.net/interface/batch.html On Mon, Mar 5, 2012 at 8:55 AM, vincent.deluard wrote: > > Hi R-users, > > I a

Re: [R] Automating R script with Windows 7

2012-03-05 Thread vincent.deluard
Hey Jim, Thanks for the help. It took me a little bit of research but I got your solution to work. For everybody who has the same problem (1) remember to use the abbreviated names (no space) in folder paths: ex: 'C:\PROGRA~1\R\R-2.11.1\bin\RScript.exe' (2) put the folder with the R script to ru

Re: [R] Automating R script with Windows 7

2012-03-05 Thread FJ M
in="Comparison of t Distributions") for (i in 1:4){ lines(x, dt(x,degf[i]), lwd=2, col=colors[i]) } legend("topright", inset=.05, title="Distributions", labels, lwd=2, lty=c(1, 1, 1, 1, 2), col=colors) This produces a nice plot. Frank --

Re: [R] Automating R script with Windows 7

2012-03-05 Thread Mikhail Titov
"vincent.deluard" writes: > I am trying to automate the daily running of a simple R script from Windows > 7. >>From previous posts, I understand that this needs to be done with the task > scheduler. That is correct. > I can schedule my laptop to automatically open R at a certain time, but not >

Re: [R] Automating R script with Windows 7

2012-03-05 Thread jim holtman
Just save your R script as a plain text file. Here is a copy of a file that I will show you how to execute; it is saved as \temp\test.r cat('this is my R script executing\n', format(Sys.Date())) Here is the command that I execute at the 'CMD' prompt and that you would have scheduled by Windows:

[R] Automating R script with Windows 7

2012-03-05 Thread vincent.deluard
Hi R-users, I am trying to automate the daily running of a simple R script from Windows 7. >From previous posts, I understand that this needs to be done with the task scheduler. I can schedule my laptop to automatically open R at a certain time, but not to execute a script. Secondary question: h