[R] Write File to Shared Drive

2011-02-15 Thread Stuart Jaffe
Hi, I'm trying to write a file to a shared drive on a network. I use the write.csv function with the correct path but R doesn't recognize the directory. Is there something different I have to do since it's a shared drive? Thanks. [[alternative HTML version deleted]]

Re: [R] Write File to Shared Drive

2011-02-15 Thread Phil Spector
Stuart - In situations like this, I always recommend using file.choose, so that you can navigate to the appropriate location. For example, write.csv(mydata,file=file.choose()) will open a file browser so you can make sure the data will get written to exactly where you want it. You can also

Re: [R] Write File to Shared Drive

2011-02-15 Thread Peter Langfelder
On Tue, 15 Feb 2011, Stuart Jaffe wrote: Hi,   I'm trying to write a file to a shared drive on a network. I use the write.csv function with the correct path but R doesn't recognize the directory. Is there something different I have to do since it's a shared drive? Thanks. Check that you

Re: [R] Write File to Shared Drive

2011-02-15 Thread Kevin Wright
The original poster did not say what operating system was being used. From my own experience on Windows, I always used / for reading from the local hard drive, but when I started working with Windows network shares/folders, I had to switch back to \\ due to an unknown feature (bug?). Kevin On

Re: [R] Write File to Shared Drive

2011-02-15 Thread Peter Langfelder
On Tue, Feb 15, 2011 at 11:56 AM, Kevin Wright kw.s...@gmail.com wrote: The original poster did not say what operating system was being used.  From my own experience on Windows, I always used / for reading from the local hard drive, but when I started working with Windows network

Re: [R] Write File to Shared Drive

2011-02-15 Thread Henrik Bengtsson
FYI, you can use the following to troubleshoot what is going on: library(R.utils); filename - MyFile.csv; path - ... # The directory where to store pathname - Arguments$getWritablePathname(filename, path=path); or if you already have the full pathname: pathname -