microsoft / AzureSMR

AzureSMR is no longer being actively developed. For ongoing support of Azure in R, see: https://github.com/Azure/AzureR
Other
60 stars 43 forks source link

Error trying to write to Blob #120

Open krunalhd opened 6 years ago

krunalhd commented 6 years ago

I have dataframe which I converted to csv using write.csv. Here result is dataframe write.csv(result, textConnection("forecastedAlerts", "w"))

azurePutBlob(sc, storageAccount = "", container = "", contents = forecastedAlerts, blob = "forecastedAlerts")

This is giving error as

Error : 1: Opening and ending tag mismatch: meta line 5 and head Error : 1: Opening and ending tag mismatch: meta line 5 and head 2: Opening and ending tag mismatch: hr line 9 and body 3: Opening and ending tag mismatch: body line 7 and html 4: Premature end of data in tag head line 3 5: Premature end of data in tag html line 2

In addition: Warning message: In charToRaw(object) : argument should be a character vector of length 1 all but the first element will be ignored.

If I write simple strings in contents it works fine. But converting dataFrame to csv and writing it fails.