Re: [R] write.csv +RMySQL request

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
Date: Fri, 29 Feb 2008 05:12:04 +0000 (GMT)

On Thu, 28 Feb 2008, jim holtman wrote:

> ?capture.output
>
> myoutput <- capture.output(write.csv(...))

It would be better to write directly to a text connection: see the 'file' argument to write.csv.

> On Thu, Feb 28, 2008 at 7:34 PM, Tristan Casey <nub_vulcanis@hotmail.com> wrote:
>> Hello,
>>
>> I am relatively new to R and learning its ins and outs. As part of a website I am building, I need to read and write csv files directly from an SQL database. Basically I want to convert R variables (dataframes) into CSV format, store them as another R variable (as a properly formatted text string suitable for csv reading) and then send this to one row in a database.
>>
>> The SQL part is fine, the problem arises because I cannot capture the output of write.csv! It posts to the terminal when file="" is used, however I also want to store it. Does anyone have any ideas?
>>
>> Thanks in advance!

-- 
Brian D. Ripley,                  ripley_at_stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________
R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Fri 29 Feb 2008 - 05:21:01 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 29 Feb 2008 - 09:30:17 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive