Re: [R] Read files in a folder when new data files come

2010-01-24 Thread jlfmssm
Thank you for your reply, Yes, this is what I want to do. I am working on Windows. The data files is located in a folder on a data server. Each time the data collectors put the new data on the data server once they get new data. What I want to do is my R program will process those new data files

Re: [R] Read files in a folder when new data files come

2010-01-24 Thread Barry Rowlingson
On Sun, Jan 24, 2010 at 8:05 PM, jlfmssm wrote: > Hello, > > I am working on a project. The new data files is coming as the data > collectors get data, then > the data collectors put these new data files in a folder. I need to > read these new data files when they are in folder. > so far, I did th

Re: [R] Read files in a folder when new data files come

2010-01-24 Thread Carlos J. Gil Bellosta
Hello, Could you tell us something more about your infrastructure? Windows? Linux? On Unix/Linux you could use cron to have a R process to read all the files in the given directory, process them one by one and archive them in another place. On Windows, no idea. Alternatively, you could perh

Re: [R] Read files in a folder when new data files come

2010-01-24 Thread jim holtman
You can read the status of every file in a directory and make the decision to process it. One technique is to create a file in the directory the last time that you processed information from the directory. You could schedule an R script to first read in your 'flag' file and determine the date it

[R] Read files in a folder when new data files come

2010-01-24 Thread jlfmssm
Hello, I am working on a project. The new data files is coming as the data collectors get data, then the data collectors put these new data files in a folder. I need to read these new data files when they are in folder. so far, I did this job manually, that is to say, each time I go to that folder