Skip to content

Commit a0b1490

Browse files
committed
[tests] remove duplicate dyn.load, add explanation
1 parent 0a27e1f commit a0b1490

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

tests/tCallNimFromR.R

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
dyn.load("tests/libtNimFromR.so")
2-
3-
source('tNimFromR.R')
1+
# Source the autogenerated R file, which loads the dynamic
2+
# library and wraps them as R functions of the same name.
3+
# IMPORTANT: The path here is based on the location of where the
4+
# R interpreter is run!
5+
source('tests/tNimFromR.R')
46

57
check <- function(arg) {
68
if (!all(arg)){
@@ -31,6 +33,5 @@ check(y == yOrig + 1.0)
3133

3234
printVec(y)
3335

34-
3536
checkSexp(x)
36-
checkSexpRaw(x)
37+
checkSexpRaw(x)

0 commit comments

Comments
 (0)