Replacement for Pkg.dependents() in 1.0?

I was using Pkg.dependents("PkgName") to get data for these force directed graphs of the Julia ecosystem last year. Now I need to actually use them and Pkg.dependents() is gone! any ideas how to build a list of all packages and their dependencies in 1.0?

That information is available in the manifest file of each package. In lack of a better alternative, maybe you could parse this, preferably using the already existing functionality to parse the manifest file that I guess exists in Pkg

Thanks, parsing seems to be the way… Any comments on how to use it to get the dependencies of a single package?

There should probably be a tool in Pkg for this, it’s just gone from being much easier than R to much harder than R.

You can choose whether you want all dependencies or just direct dependencies. From the docs,

julia> installable("DataFrames")[2]
38-element Array{String,1}:
 "Base64"           
 "CategoricalArrays"
 "Compat"           
 "DataStructures"   
 "Dates"            
 "DelimitedFiles"   
 ⋮                  
 "StatsBase"        
 "TableTraits"      
 "Tables"           
 "Test"             
 "UUIDs"            
 "Unicode"

julia> installable("DataFrames", direct = true)[2]
36-element Array{String,1}:
 "Base64"           
 "CategoricalArrays"
 "Compat"           
 "DataStructures"   
 "Dates"            
 "DelimitedFiles"   
 ⋮                  
 "Statistics"       
 "StatsBase"        
 "TableTraits"      
 "Tables"           
 "Test"             
 "UUIDs"

Oh sorry I didn’t see the docs!

Wait, I thought that Pkg.dependents("X") showed which packages depended on X. DependenciesParser.jl seems to just show the inverse: what are the dependencies of X. Right?

Both are fine for building a graph, but you could be right.