0

In R, it doesn't take data written in hindi, if a data frame is assigned. My code is:

translate(content.vec = newdata$French, 
          google.api.key = "API key 1kd", 
          source.lang = 'hi', target.lang = 'en')

Error is:

Error in file(con, "r") : cannot open the connection

Also, data which is in hindi. It turned like this

X..U.092A..U.094D..U.0930..U.092F..U.094B..U.0917..

in R.

kath
  • 7,624
  • 17
  • 32
  • 2
    Welcome to SO! Please read [ask] and give a [mcve]! Please show the code you are using! Is there any error or what other is wrong? – jogo Aug 17 '18 at 09:45
  • Please put the new information in your question (not in a comment), i.e. edit your question: https://stackoverflow.com/posts/51892561/edit In my installation of `R` there is no function `translate()` – jogo Aug 17 '18 at 10:02
  • There's a package translateR – kumudini doshi Aug 17 '18 at 10:08
  • Again, please put the new information about used additional packages in your question (not in a comment), i.e. edit your question: https://stackoverflow.com/posts/51892561/edit How can one reproduce the issue? read https://stackoverflow.com/questions/5963269/how-to-make-a-great-r-reproducible-example – jogo Aug 17 '18 at 11:53

0 Answers0