Announcement

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

  • SSC Archive durability

    In a post on 10-Nov-2026 Chen Samulsion questioned the future stability of the SSC Archive. As I announced at the UK Stata Conference 2026 and US Stata Conference 2026, there is an ongoing process, with external funding, to support the evolution of the SSC Archive. Please see https://ssc-ng.net and https://econpapers.repec.org/paper/bocusug26/22.htm

  • #2
    Thank you, Professor KitBaum.I expect the robust, community-governed, next-generation infrastructure. Perhaps I could add a forth feature——easy-to-use as SSC now.

    Comment


    • #3
      Despite ssc2, there's ssczip wrote by haghish https://github.com/haghish/ssczip from E. F. Haghish:
      Most of Stata software are published on Boston College Statistical Software Components (SSC) Archive. However, the packages are not stored there as downloadable zip files. Instead, each script file is stored in a seperate directory based on the first character of its name (e.g. apple_ is stored in a directory of A) to ensure each script file has a unique name. The reason is that Stata lacks a modular package installation and thus, Stata user-written face a threat of having programs with similar names or similar file names, which can interrupt one another... The consequence is that SSC packages cannot be downloaded as Zip files.

      Speaking of software version, when the package cannot be stored independently (e.g. as a zip file), managing its version also becomes difficult. In this case, every new update replaces the previous version and the users have no way to keep track of the version of the packages they use. The practice of software versionning is so poor on SSC that the package versions can only be looked up by reading the source code (Assuming the author has cared about writing or updating it)!

      This, however, can be improved a little without applying a dramatic change in Stata. My solution was to provide a program that creates a Zip file for each package and uses the "release date" as a unique version indicator (not a good replacement, but certainly better than nothing).

      The ssczip program that is presented here packages and downloads Stata packages from SSC as a zip file. More importantly, it also reads the source code and includes the last release date of the package (as a unique identifier of version). With this package, you can download and store the current versions of the add-on packages you use in your data analysis and in case they change in the future, you can re-run and reproduce your previous analyses using the previous versions.

      Comment


      • #4
        Actually some well-known users such as Ben Jann provide a zip file as part of the package. Haghish' ssczip readme says "

        " The consequence is that SSC packages cannot be downloaded as Zip files."

        This is not true. E.g., sec desc addlegend, net get addlegend will provide the zip file containing that package, which you can put on a USB stick and carry to a system air-gapped from the web for security purposes. But now you have to figure out where the unzipped files should be placed. The beauty of sac install is that it does that for you.

        It is unclear to me how putting everything in zip files simplifies the process: what would the names of the zip files be if not the package names? OK, you could add release date to the package name, but then users would have to search for the latest release date.

        The issue of access to prior versions was solved in Dec 2021, and announced at several Stata conferences I attended over the years. Lars Vilbuber has been "snapshotting" the entire SSC archive, and the ssc2 package provides access to any of those snapshots. ssc2 was added in September, nut access to his snapshot archive has been available for several years. Haghish' readme says "With this package, you can download and store the current versions of the add-on packages you use in your data analysis and in case they change in the future, you can re-run and reproduce your previous analyses using the previous versions". That is useful, but it is also what ssc2 accomplishes. If you completed your analysis on a date in the past 5 years, and take note of that date, ssc2 can retrieve the versions of all packages you used as-of that date. If you ran Highish's routine on that date, you will have the same thing, But his solution only works going forward--sort of like buying fire insurance. Best to make the purchase before the fire.

        Comment

        Working...
        X