has_bom | R Documentation |
has_bom(resp, encoding = "UTF-8")
resp |
|
encoding |
can be one of |
TRUE
if response contains a BOM, NA
if an unsupported encoding
was passed (along with a message)
@hrbrmstr
library(httr)
foo <- GET("http://www.claritin.com/webservice/allergyforecast.php?zip=33956")
has_bom(foo)
cfoo <- content(foo, as="text")
has_bom(cfoo)
has_bom(GET("http://google.com"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.