scripts - wookay/Taltal.jl GitHub Wiki

using RCall, CSV
R"library(taltal)"
highofficer = rcopy(R"highofficer")
CSV.write("highofficer.csv", highofficer)
using TranscodingStreams, CodecZlib
text = read("highofficer.csv")
data = IOBuffer(text)
stream = TranscodingStream(GzipCompressor(), data)
f = open("highofficer.csv.gz", "w")
b = read(stream)
write(f, b)
close(f)
close(stream)