Hi,
This is my command line request: mysql -u root -ppassword -D quant
c:/cline.txt
This line works from the command line in windows.
In R, when I try to use the system function, it does not work,
system(paste('mysql -u root -ppassword -D quant
c:/cline.txt'),show.output.on.console = TRUE)
Hi,
This is my command line request: mysql -u root -ppassword -D quant
c:/cline.txt
This line works from the command line in windows.
In R, when I try to use the system function, it does not work,
system(paste('mysql -u root -ppassword -D quant
c:/cline.txt'),show.output.on.console = TRUE)
You are on Windows, and that is how system() works on Windows (not
just in R, but in C, Perl ...). The help says
command: the system command to be invoked, as a string.
A command line is not a 'system command', and the is interpreted by the
shell you are running as your 'command line in
You can try this:
system(paste('mysql -u hsdlife -p -D life ', file('c:/teste.txt')),
show.output.on.console = TRUE)
On 16/01/07, Lapointe, Pierre [EMAIL PROTECTED] wrote:
Hi,
This is my command line request: mysql -u root -ppassword -D quant
c:/cline.txt
This line works from the command