"Can't open connection" error on Windows
Nobody has claimed this yet.
- Dominant language
- R
- Stars
- 1.1k
- Forks
- 266
- Avg merge
- 2h 56m
- Merged PRs (30d)
- 1
Description
Summary:
Please provide a short summary (no more than a sentence or two).
I 'm trying to use rstan and the stan function with rstudio and windows 10. I get a connection issue
Error in file(con, "r") : cannot open the connection
Description:
Describe the issue as clearly as possible.
Reproducible Steps:
Please report steps to reproduce the issue. If it's not possible to reproduce, please include a description of how you discovered the issue.
I 'm trying to use rstan and the stan function with rstudio and windows 10. Every time, i use the stan function I get this error message
Error in file(con, "r") : cannot open the connection
In addition: Warning messages:
1: In system(paste(CXX, ARGS), ignore.stdout = TRUE, ignore.stderr = TRUE) : '-E' not found
2: In system(cmd, intern = !verbose) : running command 'C:/PROGRA~1/R/R-40~1.1/bin/x64/R CMD SHLIB file1ae44eaa4b82.cpp 2> file1ae44eaa4b82.cpp.err.txt' had status 1
3: In file(con, "r") : cannot open file 'file1ae44eaa4b82.cpp.err.txt': No such file or directory Error in sink(type = "output") : invalid connection
If you have a reproducible example, please include it.
Current Output:
If applicable, any relevant output from RStan.
Expected Output:
If applicable, the output you expected from RStan.
RStan Version:
The version of RStan you are running (e.g., from packageVersion("rstan"))
R Version:
The version of R you are running (e.g., from R.version.string)
Operating System:
Your operating system (e.g., OS X 10.11.3)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the failure from the stan function in RStudio on Windows 10 and inspect the shown R CMD SHLIB command and compiler warnings. The issue is done when the cause of the missing connection or compiler command is identified and a stan call completes without these errors.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- r
- Domain
- operating-systems, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100