[R] Package httr::GET() question

Ben Tupper btupper @end|ng |rom b|ge|ow@org
Wed Feb 19 16:08:09 CET 2020


Hi,

Perhaps you could test it out by using httr::GET() with and without
escaping using xml2::url_escape()?

https://www.rdocumentation.org/packages/xml2/versions/1.2.2/topics/url_escape

Cheers,
Ben

On Tue, Feb 18, 2020 at 1:29 PM Roy Mendelssohn - NOAA Federal via
R-help <r-help using r-project.org> wrote:
>
> Hi All:
>
>  I hav been trying to go through the code for httr::GET() but it is somewhat beyond what I know.  What I am trying to find out is if all urls are automatically percent encoded,  or whether the user needs to do that.
>
> Thanks,
>
> -Roy
>
> **********************
> "The contents of this message do not reflect any position of the U.S. Government or NOAA."
> **********************
> Roy Mendelssohn
> Supervisory Operations Research Analyst
> NOAA/NMFS
> Environmental Research Division
> Southwest Fisheries Science Center
> ***Note new street address***
> 110 McAllister Way
> Santa Cruz, CA 95060
> Phone: (831)-420-3666
> Fax: (831) 420-3980
> e-mail: Roy.Mendelssohn using noaa.gov www: https://www.pfeg.noaa.gov/
>
> "Old age and treachery will overcome youth and skill."
> "From those who have been given much, much will be expected"
> "the arc of the moral universe is long, but it bends toward justice" -MLK Jr.
>
> ______________________________________________
> R-help using r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



-- 
Ben Tupper
Bigelow Laboratory for Ocean Science
West Boothbay Harbor, Maine
http://www.bigelow.org/
https://eco.bigelow.org



More information about the R-help mailing list