Displaying 6 results from an estimated 6 matches for "rf_findfun".
2004 Oct 08
2
R-2.0.0 findVar and findFun question
...hat 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 context, but crashes if you
call it with an unexisting function name. Rf_findVar does not crash in this case,
but returns an unbound value.
My workaround for now is as follows:
fun = Rf_findVar(Rf_install(ident), R_GlobalEnv);
if (fun != R_UnboundValue) {
fun...
2007 Jul 04
2
problem with findFun call from embedded R
...7fffa13a94c0)
at errors.c:516
#2 0x00002aaaaab7814a in Rf_errorcall (call=0x609d78,
format=0x2aaaaace4a4d "%s") at errors.c:551
#3 0x00002aaaaab78347 in Rf_error (format=0x2aaaaace42da "could not
find function \"%s\"") at errors.c:578
#4 0x00002aaaaab708e5 in Rf_findFun (symbol=0xc64f20, rho=0x649fa0) at
envir.c:1244
#5 0x0000000000400e0c in bar1 () at RNamedCall.c:54
#6 0x0000000000400d59 in main (argc=1, argv=0x7fffa13ab838) at
RNamedCall.c:16
8<------------------------
And then stepping into line 719 generates the segfault:
8<------------------------...
2010 May 06
1
R on kdeedu-svn library problem
...;:
$SOURCES/kdeedu/cantor/src/backends/R/rserver/rserver.cpp:137: undefined
reference to `R_GlobalEnv'
$SOURCES/kdeedu/cantor/src/backends/R/rserver/rserver.cpp:137: undefined
reference to `Rf_install'
$SOURCES/kdeedu/cantor/src/backends/R/rserver/rserver.cpp:137: undefined
reference to `Rf_findFun'
$SOURCES/kdeedu/cantor/src/backends/R/rserver/rserver.cpp:137: undefined
reference to `Rf_protect'
$SOURCES/kdeedu/cantor/src/backends/R/rserver/rserver.cpp:138: undefined
reference to `R_GlobalEnv'
$SOURCES/kdeedu/cantor/src/backends/R/rserver/rserver.cpp:138: undefined
reference t...
2004 Apr 06
1
A question about embedded R
...mean(1:5)")
it worked fine and got 3,
but
eval_R_command("sum(1:5)")
it produced a strange number 7.41098e-323! not 15
What is the problem?
By the way which is the better way to call the function in R from C++,
or they are same?
1. Pass the whole expression as string to R
2. Use Rf_findFun
Thank you very much!
Baiyi Song
CEI
Dortmund University, Germany
2002 Jan 02
1
Building R-1.4 on Tru64
...standardGeneric_ptr
R_GlobalEnv
R_set_quick_method_check
Rf_install
Rf_allocVector
LOGICAL
R_PreserveObject
Rf_mkChar
SET_STRING_ELT
Rf_findVar
R_UnboundValue
VECTOR_ELT
R_NamesSymbol
Rf_getAttrib
Rf_length
STRING_ELT
R_CHAR
R_do_slot
Rf_asChar
PRINTNAME
Rf_isNull
CAR
CDR
R_data_class
Rf_isFunction
Rf_findFun
SETCAR
Rf_eval
INTEGER
CLOENV
Rf_findVarInFrame
Rf_isSymbol
ENCLOS
SYMVALUE
Rf_asLogical
R_MissingArg
Rf_isPrimitive
do_set_prim_method
BODY
R_deferred_default_method
PREXPR
PRENV
R_DotsSymbol
DDVAL
R_set_prim_method
Rf_defineVar
R_do_slot_assign
mkdir ../../../../library/methods/libs
make[5]: Leav...
2002 Jul 11
1
dyn.load tcl/tk (PR#1774)
...ld:
Warning: Unresolved:
Rf_error
R_NilValue
Rf_VectorToPairList
Rf_duplicate
Rf_protect
Rf_substitute
Rf_unprotect
TYPEOF
Rf_NewEnvironment
R_GlobalEnv
R_UnboundValue
R_MissingArg
R_DotsSymbol
R_NamesSymbol
Rf_allocVector
Rf_asChar
Rf_asLogical
Rf_defineVar
Rf_eval
Rf_findVar
Rf_findVarInFrame
Rf_findFun
Rf_getAttrib
Rf_install
Rf_isEnvironment
Rf_isFunction
Rf_isNull
Rf_isObject
Rf_isPrimitive
Rf_isSymbol
Rf_length
Rf_mkChar
ATTRIB
R_CHAR
STRING_ELT
SET_STRING_ELT
VECTOR_ELT
LOGICAL
INTEGER
TAG
CAR
CDR
MISSING
SETCAR
BODY
CLOENV
PRINTNAME
SYMVALUE
DDVAL
FRAME
ENCLOS
Rf_type2str
R_PreserveObject
R_...