La forge gitlab.irstea.fr sera définitivement arrêtée le 30 juin 2026. Nous vous invitons à migrer vos projets vers la forge INRAE. Vous trouverez plus de détails sur le blog de la forge INRAE.
* NB: For linux you may need to install manualy curl (sudo apt-get install curl) and curlftpfs (sudo apt-get install curlftpfs) package
## First try
* Open R and set the working directory to the location of this document. The folder must contains:
* r-cormas-examplr.R file
* cormas-func.R file
* Make sure that you have all the basics described in above section (including the additionnal parcels loaded in Cormas and packages installed)
* Follow the tutorial described in the r-cormas-example.R
* Note that opening of cormas from R does not work at the moment. Cormas needs to be open and you need to open the R cormas connection: Simulation>analysis>R cormas>start webservice.
Then you can use functions of cormas-func.R
## Exple:
r = openModel("ECEC") To see the request sent to cormas do: r\[\[1\]\]
To see the answer received do : content(r\[\[2\]\],"text")