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

Another "Error in seq.int(cutpoints[1] + 1, cutpoints[2] - 1) : 'from' must be a finite number" problem #28

Open
kpeter4 opened this issue Sep 29, 2022 · 5 comments

Comments

@kpeter4
Copy link

kpeter4 commented Sep 29, 2022

Hi, I know there have been other posts about this issue (namely here #11) but none of these solutions have been working for me. I am getting the following error:

"
Error in seq.int(cutpoints[1] + 1, cutpoints[2] - 1) :
'from' must be a finite number
"

My Stata path and version are set up as follows:

options("RStata.StataPath" = "/Applications/Stata/StataBE.app/Contents/MacOS/StataBE")
options("RStata.StataVersion" = 17)

When I try to run any Stata code, the program starts but immediately crashes, and the .do files says the following:

capture noisily {
/RSTATA: cut me here/
clear
/RSTATA: cut me here/
} /* end capture noisily */
exit, clear STATA

I've tried changing my path to say:

options("RStata.StataPath" = "/Applications/Stata/StataBE.app/Contents/MacOS/stata-be")

Since this seems to have worked for other users, but I get an error that this file or directory doesn't exist. Has anyone figured out any other solutions to this?

Thanks so much for any help you can provide!

@markgsheppard
Copy link

I am having the exact same problem with the exact same version of Stata.

@aroberts394
Copy link

Same. It worked for me once and then it's no longer working for me. Whenever I try to run a load a dataframe from stata like this:
foo <- stata(foo.do, data.out=TRUE)

I get this:
Error in foreign::write.dta(data.in, file = dtaInFile, version = if (stataVersion >= : unable to open file for writing: 'Read-only file system'

I even tried running: auto <- stata("sysuse auto", data.out = TRUE) and get the same error above. It's weird cause it worked for me previously.

@lckdairesearch
Copy link

Same problem, is it because I am using StataBE? Appreciate if anyone knows a solution

@jsg-ucb
Copy link

jsg-ucb commented Nov 5, 2024

Was this ever resolved. I have also been having this use w/ stataMP

@jsg-ucb
Copy link

jsg-ucb commented Nov 5, 2024

Was this ever resolved. I have also been having this use w/ stataMP

I used the following:
options("RStata.StataPath" = "/Applications/Stata/StataMP.app/Contents/MacOS/stata-mp")

I confirmed in terminal as being the correct non-GUI path using:
open "/Applications/Stata/StataMP.app/Contents/MacOS/stata-mp"
This terminal command opened stata for me.

Any advice would be appreciated. Thanks!

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

5 participants