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?
Transfer from Sandbox to General forum once one is happy with the postI'm trying to make effective use of the Sandbox before posting to the General Forum. Now that I'm ha…
using lrtest to compare an empty, individual level and two-level xtmixed model after multiple imputationI am using Stata 14/IC - I have successfully conducted a multiple imputation using chained equations…
Can the log-rank test be used to compare cumulative incidence curves where the temporal order of events is known but not the actual times?I'm using Stata 15 on 64-bit W10 and I used dataex to provide sample data below. I have about one h…
Can I run a xtologit on a 0.5-paced score as dependent variable?Hi everyone, I'm working on panel data with firm ID as panelvar and report_period as timevar. I've…
Difference in mediansHello, I am trying to calculate the median difference between two variables. I have read about the …
Subscribe to:
Post Comments (Atom)
0 Response to How to detect user-written programs in do-files?
Post a Comment