stata_exe | R Documentation |
.Renviron
fileThis function will add the path to your Stata executable to your .Renviron
file. After you have installed your Stata path, it can be called at any time
with Sys.getenv("STATA_EXE")
. do_stata()
will automatically use
STATA_EXE
when running .do
files in batch mode.
stata_exe(path, install = FALSE, overwrite = FALSE)
path |
Path to your Stata executable |
install |
Install the path in your |
overwrite |
Overwrite an existing STATA_EXE that you already have in
your |
If you do not have an .Renviron
file, the function will create one for you.
If you already have an .Renviron
file, the function will append the key to
your existing file, while making a backup of your original file for disaster
recovery purposes.
## Not run:
stata_exe("C:/Program Files/Stata17/StataMP-64.exe", install = TRUE)
# After first installation, reload your environment or restart R
readRenviron("~/.Renviron")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.