Skip to content

Commit 4bb4622

Browse files
jcheng5shikokuchuo
authored andcommitted
Add later dependency
1 parent ea3c4d9 commit 4bb4622

File tree

5 files changed

+18
-0
lines changed

5 files changed

+18
-0
lines changed

DESCRIPTION

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ SystemRequirements: 'libnng' >= 1.5 and 'libmbedtls' >= 2.5, or 'cmake' to
3030
compile NNG and/or Mbed TLS included in package sources
3131
Depends:
3232
R (>= 3.5)
33+
Imports:
34+
later
35+
LinkingTo:
36+
later
3337
Suggests:
3438
knitr,
3539
markdown

NAMESPACE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ export(until_)
9696
export(wait)
9797
export(wait_)
9898
export(write_cert)
99+
importFrom(later,later)
99100
importFrom(stats,start)
100101
importFrom(tools,md5sum)
101102
importFrom(utils,.DollarNames)

R/nanonext-package.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,7 @@
9595
#' @importFrom stats start
9696
#' @importFrom tools md5sum
9797
#' @importFrom utils .DollarNames
98+
#' @importFrom later later
9899
#' @useDynLib nanonext, .registration = TRUE
99100
#'
100101
"_PACKAGE"

src/later_shim.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#include <later_api.h>
2+
3+
extern "C" void later2(void (*func)(void*), void* data, double secs) {
4+
later::later(func, data, secs);
5+
}

src/later_shim.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
#ifndef LATER_SHIM_H
2+
#define LATER_SHIM_H
3+
4+
// This is simply a shim so that later::later can be accessed from C, not C++
5+
void later2(void (*func)(void*), void* data, double secs);
6+
7+
#endif

0 commit comments

Comments
 (0)