Dear Statalisters,
I have two questions concerning referring to an user-written program when developing a new package:
1- Is that an appropriate way to do (i.e. installing and running a third package when running mine)? Although it would be detailed on the help file, is that against a tacit (or explicit) rule of programming (especially the installing part)?
Alternatively, I just indicates in the help file that my program requires foobar program to work, but it adds a step, and isn't very satisfying.
2-If this is not against rules and habits, I'd like to add a line on the top of my program that checks whether a previous (SSC) package is installed. And therefore download it if not previously installed. What could be that line of code?
I've first thought about:
But it doesn't return a yes/no variable, only displays (or not) the description, but you can't built and if [P]command.
Thanks,
Charlie
I have two questions concerning referring to an user-written program when developing a new package:
1- Is that an appropriate way to do (i.e. installing and running a third package when running mine)? Although it would be detailed on the help file, is that against a tacit (or explicit) rule of programming (especially the installing part)?
Alternatively, I just indicates in the help file that my program requires foobar program to work, but it adds a step, and isn't very satisfying.
2-If this is not against rules and habits, I'd like to add a line on the top of my program that checks whether a previous (SSC) package is installed. And therefore download it if not previously installed. What could be that line of code?
I've first thought about:
Code:
ado describe foobar
Thanks,
Charlie
Comment