[R] Binary Value into Text

Fahman Khan
Mon, 13 Jun 2016 15:17:17 -0000

I have written a following piece of code.?
> binaryFile <- file("sampleBinary.dat",
'rb')>readBin(binaryFile, character(), endian="little")

I'm getting a warning message that says?

Warning message:?In readBin(binaryFile, chracter(), endian="little") :
incomplete string at end of file has been discarded

I did research on this topic but was still unable to solve.

My file contains the following binary values:?01101000 01100101 01101100
01101100 01101111 00001010 which is hello in text. I just want to convert this
into text.?

Any help would be appreciated.
	[[alternative HTML version deleted]]