isBinaryContent | R Documentation |
These functions attempt to guess if the content is binary or text by consulting the MIME type or the extension of the file name. These are made available via the package to allow others to use them when processing low-level HTTP responses.
isBinaryContent(header, type = getContentType(header)[1], textTypes = getOption("text.content.types", textContentTypes))
header |
the header from the HTTP response which delivered the content |
type |
the MIME type |
textTypes |
a character vector giving the MIME types that identify text content |
A logical value
Duncan Temple Lang
http://www.webmaster-toolkit.com/mime-types.shtml
getURLContent
, dynCurlReader
z = getURLContent("http://www.omegahat.org/RCurl/data.gz", header = TRUE) z$header["Content-Type"] isBinaryContent( z$header["Content-Type"] ) z = getURLContent("http://www.omegahat.org/RCurl/index.html", header = TRUE) z$header["Content-Type"] isBinaryContent( z$header["Content-Type"] )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.