Displaying 1 result from an estimated 1 matches for "gz_con".
Did you mean:
getcon
2016 Nov 14
0
Read.dcf with no newline ending: gzfile drops last line
...ackage: test" "Type: Package"
Warning message:
In readLines(file_con) :
incomplete final line found on
'/var/folders/1s/wrtqcpxn685_zk570bnx9_rr0000gr/T//Rtmpz95dsT/file180a65a6b745'
>
> ### readlines with gzfile connection
> ## no warning and drops last field
> gz_con = gzfile(fname)
> readLines(gz_con) # ONLY 1 lines!
[1] "Package: test"
>
> ######################################
> # No Newline in file - fine
> ######################################
> ### readlines with gzfile connection
> ## no warning and drops last field but OK...