Skip to content

Commit 045b43c

Browse files
committed
Removed cpp11
It needed other packages making it too heavy for the functionality we need.
1 parent f49080a commit 045b43c

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed

DESCRIPTION

-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ Roxygen: list(markdown = TRUE)
1616
RoxygenNote: 7.1.2
1717
Suggests:
1818
callr,
19-
cpp11,
2019
contractr,
2120
future,
2221
future.callr,

src/init.cpp

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ extern "C" {
88

99
static const R_CallMethodDef callMethods[] = {
1010
{"trace_dispatch_call", (DL_FUNC)&trace_dispatch_call, 3},
11+
{"sigabtr", (DL_FUNC)&abort, 0},
1112
{NULL, NULL, 0}
1213
};
1314

tests/testthat/test-runner.R

+1-3
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,7 @@ test_that("runner survies an sigabort", {
6767
x <- runner_exec(
6868
r,
6969
function(x, y) {
70-
cat("c")
71-
cpp11::cpp_function("int shutdown() { abort(); return 1; }")
72-
shutdown()
70+
.Call(generatr:::C_sigabtr)
7371
x + y
7472
},
7573
list(2, 40)

0 commit comments

Comments
 (0)