ecsendmail / MultiverseContagion

1 stars 3 forks source link

basic R interoperability #1

Closed ashlinrichardson closed 3 years ago

ashlinrichardson commented 3 years ago
ecsendmail commented 3 years ago

AWESOME, Ash.

I would drown if you were not with me to guide me through the work you have done! So let's set some time aside, and then you can also tell me how to get the tables that I need.....do I have to make each run separately or can you iterate through parameter values (I hope) to produce essentially a 4-dimensional table of values and outputs?

Ernie

On Thu, Sep 10, 2020 at 11:10 AM Ashlin Richardson notifications@github.com wrote:

  • code updates to enable basic R interoperability via R's library(V8) javascript interpreter
  • fixed-point detect exit-trigger added
  • example of running a JS-based Covid19 simulation from R, retrieving agent-based parameters history and plotting (in R) cheers

You can view, comment on, or merge this pull request online at:

https://github.com/ecsendmail/MultiverseContagion/pull/1 Commit Summary

  • organize files and make names unix friendly
  • add quick start info to README.md
  • move JS code into separate file
  • skeleton of R interface
  • add nonbrowser case; formatting
  • add Rcpp based file reader for convenience
  • determine number of agents from csv file
  • pass number of agents from R/V8 into JS
  • force CSV delimiter to Windows fmt, as expected by Ernie's parser
  • hide c++ stuff in a folder
  • move files
  • add some more use_html cases
  • add more nongraphics cases
  • ready to try running simulation
  • simulation iterating: ready to pull out some state info
  • Update max_pid.cpp
  • update
  • run simulation from R, terminate after fixed-state for n iterations, access variables, plot individuals within state from R
  • add some documentation
  • add v8 intro info

File Changes

Patch Links:

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/ecsendmail/MultiverseContagion/pull/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADGAKCVURCDCZYHAFP6MVETSFEEBLANCNFSM4RFPVQJQ .