Having a string like:
txt <- "0x1f8b0800000000000000ed3cdb72db38b2eff315..."
How can i read the content as plain text?
If i interpret this question correctly that the string starts with 0x1f8b
means that it is gziped...
I tried writing it and then reading it via
tmp <- tempfile()
writeLines(txt, tmp)
readLines(gzfile(tmp))
But this just returned the same string...