I wonder if it would not be better to make the user agent string something that is configurable (at the time R is built) rather than at run time. This would make Seth's patch about 1% as long. Or this could be handled as an option. The patches are pretty extensive and allow for setting the agent header by setting parameters in function calls (eg download.files). I am not sure there is a good use case for that level of flexibility and the additional code is substantial.
The issue that I think arises is that there are potentially other systems that will be unhappy with R's identification of itself and so some users may also need to turn it off. Any strong opinions? James P. Howard, II wrote: > On 7/28/06, Seth Falcon <[EMAIL PROTECTED]> wrote: > >> I have a rough draft patch, see below, that adds a User-Agent header >> to HTTP requests made in R via download.file. If there is interest, I >> will polish it. > > It looks right, but I am running under Windows without a compiler. > -- Robert Gentleman, PhD Program in Computational Biology Division of Public Health Sciences Fred Hutchinson Cancer Research Center 1100 Fairview Ave. N, M2-B876 PO Box 19024 Seattle, Washington 98109-1024 206-667-7700 [EMAIL PROTECTED] ______________________________________________ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel