I am trying to load questions from the Stack Overflow API and I get an error about an embedded nul in the string.
document = getURL("https://api.stackexchange.com/2.2/questions?page=1&pagesize=15&order=desc&sort=creation&tagged=R&site=stackoverflow")
Error in curlPerform(curl = curl, .opts = opts, .encoding = .encoding) :
embedded nul in string: '\037<U+008B>\b'
I've tried other methods of retrieving the page, but they result in a string of incomprehensible numbers and letters, such as using the function getURLContent()
getURLis a compressed JSON (throughgzip). You have to decompress the object in order to read it.