rvle
RVLE, is a R Package, to call VLE’s API from R. This package allows to open packages, to read VPZ, assign experimental conditions to the models, call the simulator, build experimental frames and capture result of simulation into matrix or dataframe.
Installation
Windows
The binary package provided only work with R 3.5 or greater.
- Download R and install it. You have to use the 32 bits application R i386.
- install vle
- add an environment variable
VLE_HOMEwith valuec:\users\login\vle(replaceloginwith your own login name). The directory must exist before launching application. - install the R Package RUnit from the CRAN:
- Download RVLE.
- install rvle by choosing into the menu install packages from local zip file.
Linux/Unix
You can get source code of RVLE from the Git repository or using the tar ball release.
git clone https://github.com/vle-forge/rvle.git
cd rvle
git checkout -b master-2.0 origin/master-2.0
Or by wget/curl:
wget http://www.vle-project.org/pub/vle/2.0/2.0.2/rvle_2.0.2-7.zip
- install R
- install package RUnit
- read the README.rst file at the root of the directory (rvle)
cd rvle/
./autogen.sh
cd ..
R CMD INSTALL rvle
Usage
Documentation is included into the R package.
help(rvle)
help(Rvle)
A simple example of the basic API usage:
f <- rvle.open(file="test_simulation.vpz", pkg="test_port")
result <- rvle.run(f)
checkEquals(class(result$view), "data.frame")