Re: [Rd] can't get names of R_env

2009-01-09 Thread Prof Brian Ripley
You are still misrepresenting the manual, which is discourteous to the altruistic people who wrote it. You have still not explained why you 'need' help with internal parts of R that only R-core can exploit. .Internal is a private interface: .External is the documented public version. In the

Re: [Rd] can't get names of R_env

2009-01-09 Thread torpedo fisken
Thanks for your reply. 2009/1/5 Prof Brian Ripley : > You will have to read more carefully: an ENVSXP is nothing like a VECSXP, > and does not have the names of its entries in a names attribute. > > You access variables in an environment via findVar() and friends, including > findVarInFrame: see '

Re: [Rd] can't get names of R_env

2009-01-05 Thread Prof Brian Ripley
You will have to read more carefully: an ENVSXP is nothing like a VECSXP, and does not have the names of its entries in a names attribute. You access variables in an environment via findVar() and friends, including findVarInFrame: see 'Writing R Extensions'. On Mon, 5 Jan 2009, torpedo fisken

[Rd] can't get names of R_env

2009-01-05 Thread torpedo fisken
Hi, I'm quite knew in R, so I might not have the R specific jargon. But here is my problem, I'm trying to access and use variabels given by a function environment, more specifically the rho in do_optim in src/main/optim.c According to the documentation http://cran.r-project.org/doc/manuals/R-ints