search for: some_doc

Displaying 1 result from an estimated 1 matches for "some_doc".

Did you mean: some_dir
2010 Sep 22
1
help with sockets in R
...ey.value[[1]][2] } if (any(names(response$headers)=='Content-Length')) { content.length <- as.integer(response$headers['Content-Length']) response$body <- readChar(con, nchars=content.length) } close(con) } response$body ends up with "e,\"id\":\"some_doc\",\"rev\":\"7-906e06a7744780ef93126adc6f8f10ef\"}\n" when it should be: "{\"ok\":true,\"id\":\"some_doc\",\"rev\":\"7-906e06a7744780ef93126adc6f8f10ef\"}" Is mixing readLines and readChars on the same conn...