Skip to content
Snippets Groups Projects
Commit ac6f39df authored by Lukas Stadler's avatar Lukas Stadler
Browse files

fix expected output and CALLDEF for embedding test

parent c6bef5ff
Branches
No related tags found
No related merge requests found
...@@ -188,7 +188,7 @@ int main(int argc, char **argv) { ...@@ -188,7 +188,7 @@ int main(int argc, char **argv) {
printf("Calling R_getEmbeddingDllInfo...\n"); printf("Calling R_getEmbeddingDllInfo...\n");
DllInfo *eDllInfo = R_getEmbeddingDllInfo(); DllInfo *eDllInfo = R_getEmbeddingDllInfo();
R_CallMethodDef CallEntries[] = { R_CallMethodDef CallEntries[] = {
CALLDEF(twice, 2), CALLDEF(twice, 1),
{NULL, NULL, 0} {NULL, NULL, 0}
}; };
R_registerRoutines(eDllInfo, NULL, CallEntries, NULL, NULL); R_registerRoutines(eDllInfo, NULL, CallEntries, NULL, NULL);
......
...@@ -13,24 +13,12 @@ Caught an error calling sqrt(). Try again with a different argument. ...@@ -13,24 +13,12 @@ Caught an error calling sqrt(). Try again with a different argument.
Sourcing 'foo.R'... Sourcing 'foo.R'...
Calling foo with named arguments... Calling foo with named arguments...
Printing the expression to be eval'ed... Printing the expression to be eval'ed...
[[1]] function (...) {
function(...)
{
args <- list(...) args <- list(...)
print(args) print(args)
print(names(args)) print(names(args))
TRUE TRUE
} }(pch = "+", id = 123L, c(TRUE, FALSE))
$pch
[1] "+"
$id
[1] 123
[[4]]
[1] TRUE FALSE
Eval'ing the expression... Eval'ing the expression...
$pch $pch
[1] "+" [1] "+"
...@@ -43,18 +31,7 @@ $id ...@@ -43,18 +31,7 @@ $id
[1] "pch" "id" "" [1] "pch" "id" ""
Printing the expression to be tryEval'ed... Printing the expression to be tryEval'ed...
[[1]] foo(pch = "+", id = 123L, c(TRUE, FALSE))
foo
$pch
[1] "+"
$id
[1] 123
[[4]]
[1] TRUE FALSE
TryEval'ing the expression... TryEval'ing the expression...
$pch $pch
[1] "+" [1] "+"
...@@ -70,6 +47,6 @@ Calling R_getEmbeddingDllInfo... ...@@ -70,6 +47,6 @@ Calling R_getEmbeddingDllInfo...
Sourcing 'embedding.R'... Sourcing 'embedding.R'...
getDLLRegisteredRoutines('(embedding)'): getDLLRegisteredRoutines('(embedding)'):
.Call .Call.numParameters .Call .Call.numParameters
1 twice 2 1 twice 1
[1] 2 4 6 8 10 [1] 2 4 6 8 10
DONE DONE
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment