Recover status of a package from julia

In that case you can just use readlines(rd) to get an array of strings.

But after a bit of tinkering around, I think this here suits you better than my solution above:

io = IOBuffer(read=true, write=true)
Pkg.status("CuArrays", io=io)
s = String(take!(io))
println(s)
1 Like