Displaying 8 results from an estimated 8 matches for "r_env".
Did you mean:
_env
2017 Jun 05
2
Usage of PROTECT_WITH_INDEX in R-exts
Hi
I've noted a minor inconsistency in the documentation: Current R-exts reads
s = PROTECT_WITH_INDEX(eval(OS->R_fcall, OS->R_env), &ipx);
but I believe it has to be
PROTECT_WITH_INDEX(s = eval(OS->R_fcall, OS->R_env), &ipx);
because PROTECT_WITH_INDEX() returns void.
Best regards
Kirill
2017 Jun 06
2
Usage of PROTECT_WITH_INDEX in R-exts
...<kirill.mueller at ivt.baug.ethz.ch>
>>>>>> on Mon, 5 Jun 2017 17:30:20 +0200 writes:
> > Hi I've noted a minor inconsistency in the documentation:
> > Current R-exts reads
>
> > s = PROTECT_WITH_INDEX(eval(OS->R_fcall, OS->R_env), &ipx);
>
> > but I believe it has to be
>
> > PROTECT_WITH_INDEX(s = eval(OS->R_fcall, OS->R_env), &ipx);
>
> > because PROTECT_WITH_INDEX() returns void.
>
> Yes indeed, thank you Kirill!
>
> note that the same is true for its p...
2009 Jan 05
1
can't get names of R_env
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.html#The-_0027data_0027
the envsxp is defined as a tagged pairlist.
"ENVSXP: Pointers
2017 Jun 09
1
Usage of PROTECT_WITH_INDEX in R-exts
...t; on
>>>>>>>> Mon, 5 Jun 2017 17:30:20 +0200 writes:
>>> > Hi I've noted a minor inconsistency in the
>>> documentation: > Current R-exts reads
>>>
>>> > s = PROTECT_WITH_INDEX(eval(OS->R_fcall, OS->R_env),
>>> &ipx);
>>>
>>> > but I believe it has to be
>>>
>>> > PROTECT_WITH_INDEX(s = eval(OS->R_fcall, OS->R_env),
>>> &ipx);
>>>
>>> > because PROTECT_WITH_INDEX() return...
2017 Jun 06
0
Usage of PROTECT_WITH_INDEX in R-exts
...>>> Kirill M?ller <kirill.mueller at ivt.baug.ethz.ch>
>>>>> on Mon, 5 Jun 2017 17:30:20 +0200 writes:
> Hi I've noted a minor inconsistency in the documentation:
> Current R-exts reads
> s = PROTECT_WITH_INDEX(eval(OS->R_fcall, OS->R_env), &ipx);
> but I believe it has to be
> PROTECT_WITH_INDEX(s = eval(OS->R_fcall, OS->R_env), &ipx);
> because PROTECT_WITH_INDEX() returns void.
Yes indeed, thank you Kirill!
note that the same is true for its partner function|macro REPROTECT()
However, as...
2017 Jun 08
0
Usage of PROTECT_WITH_INDEX in R-exts
...at ivt.baug.ethz.ch>
>>>>>>> on Mon, 5 Jun 2017 17:30:20 +0200 writes:
>> > Hi I've noted a minor inconsistency in the documentation:
>> > Current R-exts reads
>>
>> > s = PROTECT_WITH_INDEX(eval(OS->R_fcall, OS->R_env), &ipx);
>>
>> > but I believe it has to be
>>
>> > PROTECT_WITH_INDEX(s = eval(OS->R_fcall, OS->R_env), &ipx);
>>
>> > because PROTECT_WITH_INDEX() returns void.
>>
>> Yes indeed, thank you Kirill!
>>
>&...
2008 Mar 07
1
parameters for lbfgsb (function for optimization)
...*fail, void *ex, double factr,
double pgtol, int *fncount, int *grcount,
int maxit, char *msg, int trace, int nREPORT);
What do I put for parameter ex (11th parameter)? I looked at optim.c codes
at R sites and it's a structure that has bunch of objects such as SEXP
R_fcall, SEXP R_gcall, SEXP R_env, double* ndeps, etc. I cannot figure out
what it is about.
How about fncount, rcount? R-ext.pdf or R help does not explain it in
detail. Any comments would help. Thank you.
[[alternative HTML version deleted]]
2007 Apr 13
1
Simulated annealing using optim()
I'm preparing some code to compute the optimal geometry of stressed
solids. The core of the calculations is the optimization of elastic energy
using the simulated annealing method implemented in the R optim() rutine.
I've defined a function to compute this "energy" scalar (the fn parameter
for optim) and prepared a list with the arrays defining the geometry and
the elastic