Skip to content
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

Cryptic error, possibly due to space in Stata path? #25

Open
bholtdwyer opened this issue Feb 17, 2022 · 0 comments
Open

Cryptic error, possibly due to space in Stata path? #25

bholtdwyer opened this issue Feb 17, 2022 · 0 comments

Comments

@bholtdwyer
Copy link

bholtdwyer commented Feb 17, 2022

Here's my screen after trying a minimal example:

`

#Trivial data.frame
bob=data.frame(x=c(1,2,3),y=c(3,4,5))

#Just testing if it works:
stata_command="reg y x"

#Need to give the path for the stata command:
chooseStataBin()
[1] ""

options(RStata.StataPath = "/Applications/Stata 16/StataSE.app/Contents/MacOS/stata-se")

options(RStata.StataVersion = 16)

stata(stata_command,data.in=bob)
sh: /Applications/Stata: No such file or directory
Error in seq.int(cutpoints[1] + 1, cutpoints[2] - 1) :
'from' must be a finite number
traceback()
1: stata(stata_command, data.in = bob)
`

This error doesn't give me much to work with, but I suspect given the "No such file or directory" comment that somewhere the code is screwing up because it's not expecting a space in the Stata path. (Why the idiots at Stata decided to make their default install location have a space in it I don't know.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant