From e122762102f72e9139b11cb2f1e38dd61af48568 Mon Sep 17 00:00:00 2001 From: glamp Date: Fri, 20 May 2016 12:42:35 +0300 Subject: [PATCH] fix for post --- R/yhatR.R | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/R/yhatR.R b/R/yhatR.R index 7886de5..d8c4b93 100644 --- a/R/yhatR.R +++ b/R/yhatR.R @@ -128,7 +128,7 @@ yhat.post <- function(endpoint, query=c(), data, silent = TRUE, bulk = FALSE) { jsonlite::stream_out(data, con = out) close(out) } else { - data.json <- jsonlite::toJSON(data) + data.json <- rjson::toJSON(data) } httr::POST(url, body = data.json, config = c(