[R] problem with unmatched quotes

2009-12-14 Thread Alfredo Alessandrini
Hi,

I've a problem with unmatched quotes with a bash script within a R script:


 system(awk 'NR2 {FS= 
 ;print$1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11,$12;}' 
 phenology.txt)
Errore: unexpected string constant in system(awk 'NR2 {FS= ;print$1



Alfredo

__
R-help@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.


Re: [R] problem with unmatched quotes

2009-12-14 Thread Uwe Ligges

Escape the inner quotes.

Uwe Ligges


Alfredo Alessandrini wrote:

Hi,

I've a problem with unmatched quotes with a bash script within a R script:



system(awk 'NR2 {FS= 
;print$1,$2,$3,$4,$5,$6,$7,$8,$9,$10,$11,$12;}' phenology.txt)

Errore: unexpected string constant in system(awk 'NR2 {FS= ;print$1



Alfredo

__
R-help@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.


__
R-help@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.