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

Game initialisation error: cannot open the connection #39

Open
chabrault opened this issue Sep 6, 2024 · 3 comments
Open

Game initialisation error: cannot open the connection #39

chabrault opened this issue Sep 6, 2024 · 3 comments

Comments

@chabrault
Copy link

Hi,
I tried to install the last version of the game on my computer (Windows) and it didn't work.
The script plantbreedgame_setup.Rmd compiled correctly

Encountered error message:

cannot open the connection

For reproducibility, here are the parameters used for this failed game initialisation:

{
  "rng_seed": 2003,
  "cost.pheno.field": 50,
  "cost.pheno.patho": 0.1,
  "cost.allof": 0.1,
  "cost.autof": 0.25,
  "cost.haplodiplo": 1,
  "cost.geno.hd": 1,
  "cost.geno.ld": 0.5,
  "cost.geno.single": 0.02,
  "cost.register": 4,
  "initialBudget": 3900,
  "t1_mu": 100,
  "t1_min": 20,
  "t1_cv_g": 0.1,
  "t1_h2": 0.3,
  "t2_mu": 15,
  "t2_min": 5,
  "t2_cv_g": 0.06,
  "t2_h2": 0.6,
  "prop_pleio": 0.4,
  "cor_pleio": -0.7
}

I don't know if it's linked or not to the issue #38.

@juliendiot42
Copy link
Collaborator

The game will compile the plantbreedgame_setup.Rmd in a tempoary folder and it seems your system can't open it.

Could you try to compile a simple Rmd document with a plot (I think the one suggested when you create a new Rmd document from R studio contain one) with this command:

report_build_dir <- tempdir()
rmarkdown::render("path/to/simple/file.Rmd",
      output_file = tempfile(tmpdir = report_build_dir),
      intermediates_dir = report_build_dir, 
      encoding = "UTF-8",
    )

And tell me if it works, please ?

@chabrault
Copy link
Author

It worked, I pasted below the output message:
Output created: C:\Users\cbrault\AppData\Local\Temp\RtmpmKWJX3\file301c74787ea5.html and I was able to find and open the html there.

@juliendiot42
Copy link
Collaborator

Well then I don't know and it is difficult to me to test on Windows.
If you can confirm it is working with the docker image it is good enough for me.

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