My input file is simple tab-delimited data with 3 columns
cat input
1\thello dolly\t1
2\t#hi\t2
A part of R script:
...
input<-read.table(IN,header=FALSE,sep="\t",quote="",nrows=1,fileEncoding="UTF-8")
message(i,":line; col=", ncol(row));
...
When the input file is processed by the R script, I got error in 2. line:
1.line; col=3
2.line; col=2
However, when '#' is removed from the input I got correct result:
1.line; col=3
2.line; col=3
Why # character influence number of columns - isn't it a bug? Other programs, like awk, always gave the correct number of columns