For example, I have a file with the following contents:
x=setwd('./blabla/bla'); system('python ........');
b=1,2,3
...
This is a list of stuff of a problem which I need to keep and process later on.
I need to use read table, but the problem I'm having is that the string loses the quotes and becomes:
setwd(./blabla/bla);
How can I keep the quotes by reading with read.table? If I use quote="", it gives me an error:
Error in scan(file, what, nmax, sep, dec, quote, skip, nlines, na.strings, :
line 1 did not have 4 elements
x=. If you do a quick?read.tablein the console, you'll seequote: the set of quoting characters. To disable quoting altogether, use quote = "". See scan for the behaviour on quotes embedded in quotes. Quoting is only considered for columns read as character, which is all of them unless colClasses is specifiedso usingquote=""in the call should work. - hrbrmstrread.tableand nosource? I can't reproduce this but you can tryread.table(..., quote = "")- Jake Burkheadsource. What do you want to do with the file contents after import? - Roland