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

cannot open the connection #8

Closed
sjanssen2 opened this issue Aug 29, 2019 · 3 comments
Closed

cannot open the connection #8

sjanssen2 opened this issue Aug 29, 2019 · 3 comments

Comments

@sjanssen2
Copy link

sjanssen2 commented Aug 29, 2019

Hi,
I am trying to run your wonderful tool on ~90 features, 1200 samples. After a while, I get the following error:

Error in file(file, ifelse(append, "a", "w")) : 
  cannot open the connection
Calls: metalondaAll ... write.csv -> eval.parent -> eval -> eval -> write.table -> file

Unfortunately, I don't know how to make R print line numbers or a more elaborate stack trace. I suspect the number of open file handles is exceeded. Do you know how to raise this number?

@sjanssen2
Copy link
Author

Limit seems to be set to 128 - 3 available connections: HenrikBengtsson/Wishlist-for-R#28

@sjanssen2
Copy link
Author

I spiked cat(nrow(showConnections())) into the metalonda function, which always shows 0 - so it looks like all connections are properly closed each time.

@aametwally
Copy link
Owner

Hi Stefan,

The rationale behind having the double prefix in saving figures statements is because I thought it would be easier for users to save all generated figures in one directory. Given that MetaLonDA generates ~5 files for each tested features, it'd be a bit distracting if all of these figures are saved in the current directory. Coming from the C/C++ as well, I think your suggestion is great though. In the next version, I'll add one parameter for specifying the output path and another parameter for the prefix.

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

2 participants