From: Benjamin Auder Date: Mon, 9 Jul 2018 19:04:33 +0000 (+0200) Subject: After merge X-Git-Url: https://git.auder.net/?p=morpheus.git;a=commitdiff_plain;h=eef787b9b9abe89b0c0cb44660034eed963fc135;hp=8a0bb7168beebda1bc168373abeb00614619ed08 After merge --- diff --git a/pkg/src/registerDynamicSymbol.c b/pkg/src/registerDynamicSymbol.c new file mode 100644 index 0000000..b371922 --- /dev/null +++ b/pkg/src/registerDynamicSymbol.c @@ -0,0 +1,10 @@ +// RegisteringDynamic Symbols + +#include +#include +#include + +void R_init_morpheus(DllInfo* info) { + R_registerRoutines(info, NULL, NULL, NULL, NULL); + R_useDynamicSymbols(info, TRUE); +} diff --git a/pkg/tests/testthat/test-optimParams.R b/pkg/tests/testthat/test-optimParams.R index 809056f..6864804 100644 --- a/pkg/tests/testthat/test-optimParams.R +++ b/pkg/tests/testthat/test-optimParams.R @@ -50,7 +50,7 @@ naive_f = function(link, M1,M2,M3, p,β,b) test_that("naive computation provides the same result as vectorized computations", { h <- 1e-7 #for finite-difference tests - tol <- 5e-4 #.25 * sqrt(h) #about 7.9 e-5 + tol <- 1e-3 #large tolerance, necessary in some cases... (generally 1e-6 is OK) for (dK in list( c(2,2), c(5,3))) { d = dK[1]