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?
ereturn post a vector as a pseudovariable like e(sample)Dear Statalist, I would like to define an e-class program but have no idea how to -ereturn- a pseud…
import multiple .csv into StataI have 20 .csv files which are 2001.csv 2002.csv...... 2020.csv, and I intend to import them into St…
Hospital Based Data CodeHello, I am using 10 yrs of hospital based data where people are admitted more than once within the…
Help with collapsing dataGood day, I have the following data. Code: * Example generated by -dataex-. To install: ssc instal…
Panel Data in StataHello! For my panel data in STATA I am using a set of 6 countries for a time period of 20 years. I a…
Subscribe to:
Post Comments (Atom)
0 Response to How to detect user-written programs in do-files?
Post a Comment