Re: [R] Please guide -- Error during export in csv format

2016-03-21 Thread Duncan Murdoch
On 21/03/2016 7:53 AM, Sunny Singha wrote: Please guide, I'm exporting data in '.csv' format in the Windows user directory, I have full access to. The write operation happens within a for loop. Each iteration exports data in csv format in the user directory. The issue is that the data gets

Re: [R] Please guide -- Error during export in csv format

2016-03-21 Thread Sunny Singha
(Re-posting after including R-help) Thanks Ben, Changing './' and '.' and shQuote() didn't work. I'm trying dQuote(). For your information the 'name' value retrieved is --> Hội những người đồng hành cùng I guess the string is in Vietnamese language. As you would have observed in error message it

Re: [R] Please guide -- Error during export in csv format

2016-03-21 Thread Ben Tupper
Hi, You are defeating the purpose of the file.path() function by providing a path separator in the first argument; you used './', but try instead... my.file1 <- file.path('.', paste0('likes','_',name,'_',grp_id,'.csv')) Also, there appear to be spaces in the 'name' argument - that might be

[R] Please guide -- Error during export in csv format

2016-03-21 Thread Sunny Singha
Please guide, I'm exporting data in '.csv' format in the Windows user directory, I have full access to. The write operation happens within a for loop. Each iteration exports data in csv format in the user directory. The issue is that the data gets exported for all the 9 iterations but fails for