Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/leeper/statapkg
A repo experimenting with installation of Stata packages from GitHub
https://github.com/leeper/statapkg
stata stata-command stata-packages
Last synced: about 1 month ago
JSON representation
A repo experimenting with installation of Stata packages from GitHub
- Host: GitHub
- URL: https://github.com/leeper/statapkg
- Owner: leeper
- Created: 2015-08-06T20:31:47.000Z (over 9 years ago)
- Default Branch: gh-pages
- Last Pushed: 2017-09-12T14:57:48.000Z (over 7 years ago)
- Last Synced: 2024-10-13T19:09:43.899Z (2 months ago)
- Topics: stata, stata-command, stata-packages
- Language: HTML
- Size: 16.6 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
This is a GitHub Pages repo showing how to install Stata packages directly from GitHub using the `net` command.
Using the `gh-pages` branch of a GitHub repository, you can create a simple web server from which to install Stata packages. (Note: My GitHub account is setup with a URL redirection to my personal domain (thomasleeper.com). If you don't have this configured, you should be able to access the Stata package directory using a standard github.io URL, such as `http://leeper.github.io/statpkg/`.)
Here's a simple example:
```
* net FROM THE SITE
. net from http://thomasleeper.com/statapkg/* SEE WHAT'S IN THE PACKAGE DIRECTORY
. net
------------------------------------------------------------------------------------------------------
http://thomasleeper.com/statapkg/
Some kind of package title and maybe your name
------------------------------------------------------------------------------------------------------PACKAGES you could -net describe-:
helloworld Package description
goodbyeworld Package description
------------------------------------------------------------------------------------------------------* DESCRIBE A PACKAGE FROM THE REPO
. net describe helloworld
------------------------------------------------------------------------------------------------------
package helloworld from http://thomasleeper.com/statapkg
------------------------------------------------------------------------------------------------------TITLE
helloworld | Package DescriptionDESCRIPTION/AUTHOR(S)
Distribution-date: 2014-05-29
Author Name (Author Email)
More detailsINSTALLATION FILES (type net install helloworld)
helloworld/helloworld.ado
helloworld/helloworld.hlp
------------------------------------------------------------------------------------------------------* INSTALL THE helloworld PACKAGE FROM THE SITE
. net install helloworld
checking helloworld consistency and verifying not already installed...
installing into c:\ado\plus\...
installation complete.* RUN THE COMMAND
. helloworld
hello world!
```All of the packages in the directory need their own `pkgname.pkg` file at the top-level of the repo. They also need to be listed in `stata.toc` so that the `net` command can see them. Each package is then listed in its own directory, with a separate .ado and .hlp file. Other files could also be listed in there, such as data file or whatever.