Skip to content
Prev 79787 / 398502 Next

Problems with source() function

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Does
  source(textConnection(readLines(url(http://...)))

give the correct answer. If not, what is being dropped
when you just use readLines() and look at the contents
of the download.

And how long is the longest line?


The RCurl package  (http://www.omegahat.org/RCurl) gives you a lot of
control in perform and processing HTTP requests, allowing
you to control the request, and read the body and the header of the
response.  It may be worth a try if things are getting frustrating.

 D.
Al wrote:
5!
- --
Duncan Temple Lang                duncan at wald.ucdavis.edu
Department of Statistics          work:  (530) 752-4782
371 Kerr Hall                     fax:   (530) 752-7099
One Shields Ave.
University of California at Davis
Davis, CA 95616, USA
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (Darwin)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDYSvk9p/Jzwa2QP4RAsqfAJ98RNScQ7ea1/MAnt72R0VGZoXaEQCfZvyl
WNNN/HT1hx/Kix3KSp15XwM=
=VsDG
-----END PGP SIGNATURE-----