Package: pysd2r 0.1.0
pysd2r: API to 'Python' Library 'pysd'
Using the R package 'reticulate', this package creates an interface to the 'pysd' toolset. The package provides an R interface to a number of 'pysd' functions, and can read files in 'Vensim' 'mdl' format, and 'xmile' format. The resulting simulations are returned as a 'tibble', and from that the results can be processed using 'dplyr' and 'ggplot2'. The package has been tested using 'python3'.
Authors:
pysd2r_0.1.0.tar.gz
pysd2r_0.1.0.zip(r-4.7-any)pysd2r_0.1.0.zip(r-4.6-any)pysd2r_0.1.0.zip(r-4.5-any)
pysd2r_0.1.0.tgz(r-4.6-any)pysd2r_0.1.0.tgz(r-4.5-any)
pysd2r_0.1.0.tar.gz(r-4.7-any)pysd2r_0.1.0.tar.gz(r-4.6-any)
pysd2r_0.1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
pysd2r/json (API)
| # Install 'pysd2r' in R: |
| install.packages('pysd2r', repos = c('https://jimduggan.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/jimduggan/pysd2r/issues
Last updated from:218a2f9a32. Checks:7 NOTE, 2 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel | NOTE | 110 | ||
| source / vignettes | OK | 185 | ||
| linux-release | NOTE | 104 | ||
| macos-release | NOTE | 99 | ||
| macos-oldrel | NOTE | 103 | ||
| windows-devel | NOTE | 78 | ||
| windows-release | NOTE | 82 | ||
| windows-oldrel | NOTE | 55 | ||
| wasm-release | OK | 107 |
Exports:get_docget_final_timeget_initial_timeget_python_infoget_timesteppysd_connectread_vensimread_xmilereload_modelrun_modelset_componentsset_time_values
Dependencies:clievaluateglueherehighrjsonliteknitrlatticelifecyclemagrittrMatrixpillarpkgconfigpngrappdirsRcppRcppTOMLreticulaterlangrprojroottibbleutf8vctrswithrxfunyaml
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Formats a table of variable names | get_doc |
| Gets the final time from the model | get_final_time |
| Gets the initial time from the model | get_initial_time |
| Gets the current python configuration for reticulate | get_python_info |
| Gets the time step (DT) from the model | get_timestep |
| Creates an object to facilitate interaction with pysd | pysd_connect |
| Loads a Vensim simulation file (mdl) | read_vensim |
| Loads a XMILE simulation file (.xmile) | read_xmile |
| Reloads the model from original mdl file | reload_model |
| Runs a simulation model | run_model |
| Changes a model parameter | set_components |
| Sets the initial time, final time, and timestep | set_time_values |