I am writing a program that reads Arabic text from a text file in R, whenever I read a file, I get the following errors:
Warning messages: 1: In read.table("C:\\Users\\Mustafa\\Desktop\\arabic.txt", sep = "\n", : invalid input found on input connection 'C:\Users\Mustafa\Desktop\arabic.txt' 2: In read.table("C:\\Users\\Mustafa\\Desktop\\arabic.txt", sep = "\n", : incomplete final line found by readTableHeader on 'C:\Users\Mustafa\Desktop\arabic.txt' File<-read.table("C:\\Users\\Mustafa\\Desktop\\arabic.txt",sep=" \n",col.names="ar",fileEncoding="UTF-8")
I have no idea where the error is, the environment I use is windows, on mac os this file works, however I have to run it on windows! any help is appreciated.
Thanks!
source share