Re: [R] Rglpk

From: Peter Ehlers <>
Date: Wed, 09 Jun 2010 11:47:34 -0600

On 2010-06-09 5:11, Kaveh Vakili wrote:
> Hi list,
> in the Rglpk_solve_LP function (::Rglpk),
> on line 26, the function calls a function
> as.glp_bounds() that i cannot access.
> i'm trying to alter the Rglpk_solve_LP function
> to add a line to retrieve column/row dual values.
> everytime i change the slightest line of code inside
> Rglpk_solve_LP() [to even add a print]
> i get a
> ': could not find function "as.glp_bounds"'
> What's the catch here ?

No catch: as.glp_bounds() is buried in namespace:Rglpk. Your modified function is presumably in the global environment. This should work:

Let's say your modified function is myfun(). After you source myfun, set its environment with

  environment(myfun) <- environment(Rglpk_solve_LP)

-Peter Ehlers mailing list PLEASE do read the posting guide and provide commented, minimal, self-contained, reproducible code. Received on Wed 09 Jun 2010 - 17:49:42 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Wed 09 Jun 2010 - 18:30:28 GMT.

Mailing list information is available at Please read the posting guide before posting to the list.

list of date sections of archive