do_stata | R Documentation |
.do
file in batch modeRun a Stata .do
file in batch mode from the command line. It is recommended
to install the path to your Stata executable first with stata_exe()
.
do_stata(file, wd = NULL, stata_exe = NULL)
file |
A path to a Stata |
wd |
Working directory in which to run the |
stata_exe |
The path to your Stata executable. If |
stata_exe()
## Not run:
# Install the path to your Stata executable first
stata_exe("YOUR STATA EXE")
# Run a do file in batch mode
do_stata("script.do")
# Run a do file in batch mode, specifying the Stata executable
do_stata("script.do", stata_exe = "C:/Program Files/Stata17/StataMP-64.exe")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.