Problem with GAMS Transfer R

Questions on using the GAMS APIs (Python, .NET, etc.)
Post Reply
Sophie
User
User
Posts: 2
Joined: 1 month ago

Problem with GAMS Transfer R

Post by Sophie »

Hello GAMS Forum
I tried to use GAMS Tranfer R.
I succeeded in installing the gamstransfer library but when I run the line: m = Container$new() I have an error message: "Error in find_gams() :
Could not find a GAMS installation, must manually specify system directory"
I understand that the system directory is not well specified in the find_gams function, but I don't know how to specify it manually.
can someone help me?
Thank you
Sophie
abhosekar
Moderator
Moderator
Posts: 291
Joined: 3 years ago

Re: Problem with GAMS Transfer R

Post by abhosekar »

Sophie,
There are a couple ways to get gams transfer R to identify the system directory.
1. Add gams system directory to your system variable PATH. Depending on the platform you use, there are different ways to achieve this. This is the recommended and easier solution.

2. Alternatively, you can use systemDirectory argument to the container constructor.
m=Container$new(systemDirectory=“C:/GAMS/44”)

You can view this in the documentation:

https://www.gams.com/44/docs/API_R_GAMS ... _CONTAINER

Hope this helps.

Best, Atharv
Sophie
User
User
Posts: 2
Joined: 1 month ago

Re: Problem with GAMS Transfer R

Post by Sophie »

Thank you so much
Regards
Sophie
Post Reply