Skip to content

readLines errors

5 messages · zhijie zhang, David Winsemius

#
On Dec 24, 2011, at 4:12 AM, rusers.sh wrote:

            
When I plug that URL into my browser (Firefox) I get this text on a  
white background:

602,0,0,0
When I execute that code in R I get:
[1] "{"
And when I remove the lines restriction I get:
[1] "{"
[2] "  \"name\": \" ??????\\u003chttp://ditu.google.cn/maps/geo? 
q= ???\\u003e\","
[3] "  \"Status\": {"
[4] "    \"code\": 602,"
[5] "    \"request\": \"geocode\""
[6] "  }"
[7] "}"
I don't read Chinese , however it does appear that there was some sort  
of extra processing step that Firefox carried out to arrive at the  
displayed text.
David Winsemius, MD
West Hartford, CT
#
On Dec 24, 2011, at 9:55 AM, rusers.sh wrote:

            
?options # and look at the HTTPUserAgent choice

I believe this:

 > options()$HTTPUserAgent
[1] "R (2.14.0 x86_64-apple-darwin9.8.0 x86_64 darwin9.8.0)"


... is telling me that the choice is passed off to the OS, and only  
because you keep referring to (MS)IE do we know that you are running  
one of that Redmond company's products. (You should evidently do more  
study of the relationship of R to the OS platform you use.)
That is not an appropriate question for this mailing list. You persist  
in posting in HTML. Maybe you should also spend more time learning to  
use you mail client correctly?