Displaying 3 results from an estimated 3 matches for "d_rho".
2020 Mar 23
2
help with rchk warnings on Rf_eval(Rf_lang2(...))
...hat
are now being flagged as problematic by Tomas Kalibera's 'rchk'
machinery (https://github.com/kalibera/rchk); results are here
https://raw.githubusercontent.com/kalibera/cran-checks/master/rchk/results/lme4.out
The problem is with constructions like
::Rf_eval(::Rf_lang2(fun, arg), d_rho)
I *think* this means "construct a two-element pairlist from fun and arg,
then evaluate it within expression d_rho"
This leads to warnings like
"calling allocating function Rf_eval with argument allocated using Rf_lang2"
Is this a false positive or ... ? Can anyone help inte...
2020 Mar 23
5
help with rchk warnings on Rf_eval(Rf_lang2(...))
...39;s really useful. One more question for you, or someone
else here:
const ArrayXd glmLink::linkFun(const ArrayXd& mu) const {
return as<ArrayXd>(::Rf_eval(::Rf_lang2(as<SEXP>(d_linkFun),
as<SEXP>(Rcpp::NumericVector(mu.data(),
mu.data() + mu.size()))
), d_rho);
}
I guess I need that to read
PROTECT(::Rf_eval(PROTECT(::Rf_lang2(...),...) , but as written it
doesn't seem I have anywhere to squeeze in an UNPROTECT(2). Do I need
to define a temporary variable so I can UNPROTECT(2) before I return the
value?
Or is there a way I can use Shield() s...
2020 Mar 23
0
help with rchk warnings on Rf_eval(Rf_lang2(...))
...problematic by Tomas Kalibera's 'rchk'
> machinery (https://github.com/kalibera/rchk); results are here
> https://raw.githubusercontent.com/kalibera/cran-checks/master/rchk/results/lme4.out
>
> The problem is with constructions like
>
> ::Rf_eval(::Rf_lang2(fun, arg), d_rho)
>
> I *think* this means "construct a two-element pairlist from fun and arg,
> then evaluate it within expression d_rho"
>
> This leads to warnings like
>
> "calling allocating function Rf_eval with argument allocated using Rf_lang2"
>
> Is this a fal...