# NOT RUN {
## To write a CSV file for input to Excel one might use
x <- data.frame(a = I("a \" quote"), b = pi)
WriteTable(x, file = "foo.csv", sep = ",", col.names = NA,
qmethod = "double")
## and to read this file back into R one needs
read.table("foo.csv", header = TRUE, sep = ",", row.names = 1)
## NB: you do need to specify a separator if qmethod = "double".
# }
Run the code above in your browser using DataLab