New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In file(con, "r"): cannot open file 'RStata.log': No such file or directory #2
Comments
It could be a windows-quote problem. Can you use let me know |
closing in 7 days (more or less) from today... |
I had the same issue. I used chooseStataBin() and set it as you suggested. I tried single quotes and double quotes, and the same result occurred. Running Windows 10, Stata 12.
R.version specs:
|
still have issues,
|
Umm, at the time i wrote the function i tested it on Windows XP (and 7) with both Stata 13 (SE 64bit) and Stata 8 (SE 32) and from what i remember it worked fine. Unfortunately i've no machine running Windows 10 (i'm not a Windows daily user...) at the time. Anyway RStata uses Stata batch mode in Windows: could you please test if you can run a do file in batch mode with the http://www.stata.com/manuals14/gswb.pdf#gswB.5 Another guy who contacted me via e-mail said to have a similar problem and the reason was that his Stata version didn't support batch execution. Regarding other operating systems:
|
http://www.stata.com/manuals14/gswb.pdf#gswB.5
Pretty sure the above is the root of the problem on the windows side. Windows installs stata into say, i'm guessing your Rstata uses "Method 2" above, which tries to output the 'foo.log' file into the On another Note, I tried "Method 1" which runs fine for stata (outputs a 'foo.log' file successfully) into the user specified "...\statalogs" directory
I suggest adding an option to "Rstata" that lets us choose the "\statalog" directory which plays nicely with Method 1 above. This sidesteps the probable issue we're seeing here. This would be for people that can not modify the write permissions of the default stata directory. |
i'm going on holiday; i'll check it a bit more in deep when i come back |
@mikejacktzen @bprest could you test the development version now and tell me how it goes? remove.packages('RStata')
devtools::install_github('lbraglia/RStata') thanks |
It works on my colleague's machine! Unfortunately it won't even install on mine for some reason, but I believe this is a local problem. |
Great! works for me on windows 10 with StataSE14
|
Fine. It was a Windows path quoting problem that i missed the last time. I've submitted the patched version (1.1.0) to CRAN; it should be available for easy download/install soon. best, Luca |
Hello, sorry to dig this out but I m still getting a similar problem. I m using R to do loops involving use of rstata. Each of the loops execute rstata. The loops generally go on fine and successful executeed many loops until some time later there was ab error "unable to open `C:\mydofilefolder\Rstata.log' ". So the loops sometimes work , sometimes don't. Grateful for any advice. |
I've tried your instructions and run into an error
The text was updated successfully, but these errors were encountered: