Announcement

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

  • How to install packages from Github

    Hi everyone,

    I am new to this forum. And I have never used Github.

    I am wondering if there is any tutorial for how to install Stata packages from Github, such as this one: https://github.com/friosavila/stpack...ee/main/csdid2

    Thanks! Have a nice day.
    Repository for all my Stata packages. Contribute to friosavila/stpackages development by creating an account on GitHub.

  • #2
    Hello Frank,

    I have found the easiest way to handle packages from GitHub is to install 'github'.

    Code:
    net install github, from("https://haghish.github.io/github/")
    Code:
    help github
    Search of official help files, FAQs, Examples, and Stata Journals

    SJ-20-4 pr0073 Developing, maintaining, and hosting Stata software on GitHub
    (help github if installed) . . . . . . . . . . . . . . E. F. Haghish
    Q4/20 SJ 20(4):931--951
    introduces the github command version 2.0, which facilitates
    building, searching, installing, and managing statistical
    packages hosted on GitHub

    I think that the SJ article is open access and it has a good description of accessing GitHub.

    However, I have not used csdid2 but as far as I can see csdid2 is not installed from github, you just have to copy the files as it indicates at the end of the github listing.

    'Last note!
    you need to copy all files in this repository on your ado/personal folder. And start from a new Stata session for it to work.'


    I hope that this is of some use.

    Martyn

    Comment


    • #3
      Originally posted by Martyn Sherriff View Post
      Hello Frank,

      I have found the easiest way to handle packages from GitHub is to install 'github'.

      Code:
      net install github, from("https://haghish.github.io/github/")
      Code:
      help github
      Search of official help files, FAQs, Examples, and Stata Journals

      SJ-20-4 pr0073 Developing, maintaining, and hosting Stata software on GitHub
      (help github if installed) . . . . . . . . . . . . . . E. F. Haghish
      Q4/20 SJ 20(4):931--951
      introduces the github command version 2.0, which facilitates
      building, searching, installing, and managing statistical
      packages hosted on GitHub

      I think that the SJ article is open access and it has a good description of accessing GitHub.

      However, I have not used csdid2 but as far as I can see csdid2 is not installed from github, you just have to copy the files as it indicates at the end of the github listing.

      'Last note!
      you need to copy all files in this repository on your ado/personal folder. And start from a new Stata session for it to work.'


      I hope that this is of some use.

      Martyn
      Thank you, Martyn! Cheers

      Comment

      Working...
      X