Skip to content

Commit

Permalink
[tests] remove duplicate dyn.load, add explanation
Browse files Browse the repository at this point in the history
  • Loading branch information
Vindaar committed Mar 26, 2024
1 parent 7e0ab4d commit 1952cd1
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions tests/tCallNimFromR.R
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
dyn.load("tests/libtNimFromR.so")

source('tNimFromR.R')
# Source the autogenerated R file, which loads the dynamic
# library and wraps them as R functions of the same name.
# IMPORTANT: The path here is based on the location of where the
# R interpreter is run!
source('tests/tNimFromR.R')

check <- function(arg) {
if (!all(arg)){
Expand Down Expand Up @@ -31,6 +33,5 @@ check(y == yOrig + 1.0)

printVec(y)


checkSexp(x)
checkSexpRaw(x)
checkSexpRaw(x)

0 comments on commit 1952cd1

Please sign in to comment.