I know this is Stata 101 but I'm not finding the answer. With this line,
I want the outputfilename enclosed in quotation marks, e.g. I want a line written like
semdata <- read_dta("C:\Dropbox\Testprogs/ltry.dta")
but instead I get
semdata <- read_dta(C:\Dropbox\Testprogs/ltry.dta)
There must be some easy way to do this, but I don't know what it is.
Code:
file write `out' "semdata <- read_dta(`outputfilename')" _n
semdata <- read_dta("C:\Dropbox\Testprogs/ltry.dta")
but instead I get
semdata <- read_dta(C:\Dropbox\Testprogs/ltry.dta)
There must be some easy way to do this, but I don't know what it is.
Comment