I would not say that the documentation is wrong. It is just confusing and fails to mention the optional arguments. As we have standardized on ~/.julia, we should probably mention where we will end up creating files.
If you think you got a grip of how the function works, you can suggest improvements to the docs here <https://github.com/JuliaLang/julia/edit/master/doc/stdlib/pkg.rst>. If not you should open an issue on github about the confusion so that we can add an appropriate milestone. Ivar kl. 23:07:40 UTC+2 torsdag 11. september 2014 skrev Peter Simon følgende: > > Ah! I had a look at the source code for `Pkg.init` and see that its > default first argument is DEFAULT_META, which is initialized to "git:// > github.com/JuliaLang/METADATA.jl". So `Pkg.init` is used to point the > package manager to the global METAFILE package directory. This is > definitely not what I took away from the documentation, which reads: > > > help?> Pkg.init > Base.Pkg.init() > > Initialize "Pkg.dir()" as a package directory. This will be done > automatically when the "JULIA_PKGDIR" is not set and > "Pkg.dir()" uses its default value. > > > > This is the same as the online docs. Since the documentation talks about > `Pkg.dir()` I thought it was for establishing the local package repository > location. Looks like the documentation wrong/out of date? > > Thanks, > --Peter > >
