Welcome to WEAP's Website WEAP
WEAP is an initiative of the Stockholm Environment Institute.


About WEAP

Home
Why WEAP?
Features
What's New?
Sample Screens
Demonstration
Publications
History and Credits

Using WEAP
Download
Licensing
User Guide
Tutorial
Videos (YouTube)

User Forum
Discussions
Members List
Edit Profile

Additional Support
Training
University Courses
Collaboration

About Us
SEI-US Water Resources Program
Please Contact Us

LEAP
Interested in Energy?
Read about LEAP: SEI's software for energy planning.

Link WEAP and LEAP for combined Water-Energy planning.
Watch a video demo!
   

User Forum

All Topics | Topic "Calling WEAP from R environment"
Log in to post new messages or reply to existing messages.
 
Author Message
Dr. Hosein Alizadeh

Subject: Calling WEAP from R environment   
Posted: 8/31/2015 Viewed: 17355 times
Hi
I'm wondering if there is anyway to call WEAP and automate it from R software environment? What are the codes needed and what task should be done before.
Best Regards
Ms. Stephanie Galaitsi

Subject: Re: Calling WEAP from R environment   
Posted: 9/8/2015 Viewed: 17286 times
Python can call WEAP, and it looks like R can call Python, so that may be the only way to do it right now.
Dr. Diana Quevedo

Subject: Re: Calling WEAP from R environment   
Posted: 6/27/2019 Viewed: 8692 times
Hi Stephanie
Do you know if now it is possible to call WEAP from R?
Best,
Diana.
Dr. Vishal Mehta

Subject: Re: Calling WEAP from R environment   
Posted: 7/1/2019 Viewed: 8647 times
Hi Diana,

You could probably call WEAP.exe from the system dialog in R - thats how you can generally call other programs from R.

Another option is to write batch script that opens WEAP; call the batch script from within R.

Hope that helps,
Vishal
Dr. Diana Quevedo

Subject: Re: Calling WEAP from R environment   
Posted: 7/3/2019 Viewed: 8630 times
Hi Vishal
Thank you for your answer. In fact, is possible to call WEAP using system(), but I haven't been able to write my initials name and click OK on popup window in this script.
Do you know how I can do it?
Thank you again.
Best regards,
Diana.
Topic "Calling WEAP from R environment"