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

About WEAP

What's New?
Sample Screens
History and Credits

Using WEAP
User Guide
Videos (YouTube)

User Forum
Members List
Edit Profile

Additional Support
University Courses

About Us
SEI-US Water Resources Program
Please Contact Us

Environmental News
Not acting like themselves: Antidepressants in environment alter crayf...
Expose crayfish to antidepressants, and they become more outgoing -- but that might not be such a positive thing for the...

Small streams in agricultural ecosystems are heavily polluted with pes...
Pesticides safeguard agricultural yields by controlling insects, fungi, and weeds. However, they also enter streams and...

Heat from below: How the ocean is wearing down the Arctic sea ice
The influx of warmer water masses from the North Atlantic into the European marginal seas plays a significant role in th...
Source: Science Daily
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: 11532 times
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: 11465 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: 2872 times
Hi Stephanie
Do you know if now it is possible to call WEAP from R?
Dr. Vishal Mehta

Subject: Re: Calling WEAP from R environment   
Posted: 7/1/2019 Viewed: 2827 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,
Dr. Diana Quevedo

Subject: Re: Calling WEAP from R environment   
Posted: 7/3/2019 Viewed: 2811 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,
Topic "Calling WEAP from R environment"