Announcement

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

  • capture ssc install

    In Stata 12, using the command "ssc install [package]" would generate an error if the package was already installed. However, I'm noticing that in Stata 13 and Stata 14, this no longer appears to be the case. Is it correct that "ssc install [package]" will no longer generate an error when the package is installed in later versions of Stata?

  • #2
    I just tried to -ssc install- a program (statplot) that was already installed on my machine using both Stata 13 and Stata 12 -- both produced the same behavior when the package was already installed: it did not generate any sort of error and instead produced the message:

    checking statplot consistency and verifying not already installed...
    all files already exist and are up to date.


    What error are you getting in Stata v12 from exactly what command?



    Incidentally, in my do-files, if I want to verify that I (or co-authors) have packages installed , I generally include:

    Code:
    cap which fakepgrm
    if _rc ssc install fakeprgm

    - Eric






    Eric A. Booth | Senior Director of Research | Far Harbor | Austin TX

    Comment

    Working...
    X