Displaying 6 results from an estimated 6 matches for "findvar1".
Did you mean:
findvar
2001 Apr 25
0
match.arg confusion (PR#921)
...call, take the 1st element,
and reevaluate it in the parent frame. It is quite easy to think up
examples where a second evaluation does not give the same value as
the first.
Your particular case is of a slightly different natur and should be
easily fixable by replacing findVar in R_sysfunction by findVar1 and
looking specifically for objects of mode "function", but the basic
problem persists. I don't think I want to risk fixing this (and maybe
unfixing something else) for 1.2.3 tomorrow though.
--
O__ ---- Peter Dalgaard Blegdamsvej 3
c/ /'_ --- Dept. of Biost...
2002 Apr 09
0
match.arg confusion (PR#921)
...arent frame. It is quite easy to think up
PD> examples where a second evaluation does not give the
PD> same value as the first.
PD> Your particular case is of a slightly different natur
PD> and should be easily fixable by replacing findVar in
PD> R_sysfunction by findVar1 and looking specifically for
PD> objects of mode "function", but the basic problem
PD> persists. I don't think I want to risk fixing this (and
PD> maybe unfixing something else) for 1.2.3 tomorrow
PD> though.
and Peter *did* implement the ``stop gap'...
2004 Oct 08
2
R-2.0.0 findVar and findFun question
Dear all,
when working on a project with embedded R, I found out that R-2.0.0 causes
a problem where older versions worked OK.
Rf_findVar(...) causes the following error when used to find a generic function
(such as print):
fun = Rf_findVar(...);
R_tryEval(fun, ...);
Error in function (object, ...) : Invalid generic function in usemethod
Alternatively, using Rf_findFun(...) seems OK in this
2005 Sep 18
0
Updated rawConnection() patch
...de, "w", 1) == 0) {
/* create variable pointed to by con->description */
- PROTECT(val = allocVector(STRSXP, 0));
- defineVar(this->namesymbol, val, VECTOR_ELT(OutTextData, idx));
- UNPROTECT(1);
+ val = allocVector(st, 0);
} else {
/* take over existing variable */
- val = findVar1(this->namesymbol, VECTOR_ELT(OutTextData, idx),
- STRSXP, FALSE);
+ val = findVar1(this->namesymbol, venv, st, FALSE);
if(val == R_UnboundValue) {
- warning(_("text connection: appending to a non-existent char vector"));
- PROTECT(val = allocVector(STRSXP, 0));
-...
2007 Jul 04
2
problem with findFun call from embedded R
I was debugging a problem reported to me regarding PL/R, and found that
I can duplicate it using only R sources. It might be characterized as
possibly a misuse of the findFun() function, but I leave that for the R
devel experts to decide.
The below results are all with R-2.5.1 (I can't seem to download
r-patched at the moment, but didn't see anything in the 2.5.1-patched
release
2005 Aug 22
2
RFC: "loop connections"
...;w", 1) == 0) {
/* create variable pointed to by con->description */
- PROTECT(val = allocVector(STRSXP, 0));
+ PROTECT(val = allocVector(st, 0));
defineVar(this->namesymbol, val, VECTOR_ELT(OutTextData, idx));
UNPROTECT(1);
} else {
/* take over existing variable */
val = findVar1(this->namesymbol, VECTOR_ELT(OutTextData, idx),
- STRSXP, FALSE);
+ st, FALSE);
if(val == R_UnboundValue) {
- warning(_("text connection: appending to a non-existent char vector"));
- PROTECT(val = allocVector(STRSXP, 0));
+ warning(_("loop connection...