Is there a reasonable way to detect user-written commands in Stata code?
I lead a small (5-person, including me) group of criminologists. We're trying to ensure that our work is always 100% reproducible. Among the steps I'm trying to take there is to package user-written ado files with each project, to protect against changes from updated versions of user-written commands and the disappearance of commands in SSC and other sources.
When writing code myself, I can just create a directory in my project's folder and add it to the adopath in the project's do-files. But sometimes I honestly forget what's user-written. And explaining how to find the relevant ado, grab all of the files in the package, and copy those files to my team is difficult and error prone.
Ultimately, what I'd like is a program that will read the do-files in a project, determine what (if any) user-written files are used in the do files, create an ado folder in the project, and copy the user-written commands (and their helpfiles) there.
I'm open to different approaches to solving this problem, so if you've solved this in some clever way, I'd love to hear it.
Related Posts with How to detect user-written programs in do-files?
Firm fixed-effectHi, I am using firm fixed-effect in my main regressions and the results are significant. When I run …
Problem concerning panel aata with duplicate time variablesDear all, I have a dataset of 40 companies with a total of 975 votes and want to look at the impact …
FavarHello everyone, I want to apply FAVAR model but I could not find any source on how to implement it …
i.year not controlling for first year when using xtreg/regThe xtreg command I'm using is Code: xtreg log_dep_sum c.indep_perc##i.industry_abovemed i.month,f…
Merging data but file not foundHello Statalists! I've been using STATA's merge function for a while, but this is something I've ne…
Subscribe to:
Post Comments (Atom)
0 Response to How to detect user-written programs in do-files?
Post a Comment