Skip to content

Commit

Permalink
Update 10-creating-environments.md
Browse files Browse the repository at this point in the history
Solves #1
  • Loading branch information
larsvilhuber authored Mar 23, 2024
1 parent 9c810f1 commit 9b1b49d
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion 10-creating-environments.md
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ which should show something like this:

```
. adopath
[1] (PLUS) "C:\Users\lv39\Documents/ado/"
[1] (PLUS) "C:\Users\lv39\Documents/PROJECT123/ado/"
[2] (BASE) "C:\Program Files\Stata18\ado\base/"
[3] (SITE) "C:\Program Files\Stata18\ado\site/"
[4] "."
Expand All @@ -241,6 +241,21 @@ r(111);

So it is no longer found. Why? Because we have removed the previous location (the old `PLUS` path) from the search sequence. It's as if it didn't exist.

When we now install `reghdfe` again:

```
. ssc install reghdfe
checking reghdfe consistency and verifying not already installed...
installing into C:\Users\lv39\Documents\PROJECT123\ado\plus\...
installation complete.
. which reghdfe
C:\Users\lv39\Documents\PROJECT123\ado\plus\r\reghdfe.ado
*! version 6.12.3 08aug2023
```

We now see it in the **project-specific** directory, which we can distribute with the whole project (more on that later).

Let's imagine we need an older version of `reghdfe`. We will leverage the SSC Snapshot maintained by Lars Vilhuber on Github ([https://github.com/labordynamicsinstitute/ssc-mirror/](https://github.com/labordynamicsinstitute/ssc-mirror/)) (details are for a different tutorial):

```stata
Expand Down

0 comments on commit 9b1b49d

Please sign in to comment.