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 ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.