Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Installing User Written Packaged With Net

    When I try to install my user written fdid like this

    Code:
    net install fdid, all from("https://github.com/jgreathouse9/jgreathouse9.github.io/tree/master/stata/fdid")
    Stata tells me there's nothing to install. Why? I have the .toc file, I have the .pkg, sthlp, and ado file. What more would I need for Stata to recognize this as legitimate? You can see the files for yourselves on github here.


    EDIT: I GUESS as a workaround users could just do
    Code:
    copy "https://raw.githubusercontent.com/jgreathouse9/jgreathouse9.github.io/master/stata/fdid/fdid.ado" "C:\ado\plus\f\fdid.ado", replace
    copy "https://raw.githubusercontent.com/jgreathouse9/jgreathouse9.github.io/master/stata/fdid/fdid.sthlp" "C:\ado\plus\f\fdid.sthlp", replace
    By using whatever their path for ado files is.... but that's kind of silly, I would hope users could use the net command.
    Last edited by Jared Greathouse; 13 Jul 2024, 08:42.

  • #2
    Read the full pdf documentation of net, especially the section entitled "Creating your own site". It's all documented. In a nutshell: you need two more files, one stata.toc file and one .pkg-file.

    Look at my Git repository for trackobs for what I think is the minimal setup.


    Edit: I just looked up your site and you already have those two files. The version is wrong in both, though. You should not freely choose a version number or format for those files. These files' versions also have nothing to do with your software, The versions must be what is documented in net, which is v 3 (sic) as of this writing, and it tells net how to interpret stata.toc and teh pkg-file. I believe the distribution date should not include any dashes; better to mimc the style on SSC, which is YYYYMMDD. Also, you need to to direct net to the https://raw.githubusercontent.com/.

    Hope that helps.
    Last edited by daniel klein; 13 Jul 2024, 12:01.

    Comment


    • #3
      Okay. I'll edit that then!

      Comment

      Working...
      X