Skip to content

Commit eb2a12f

Browse files
committed
WIP for R universe build fail #53
1 parent c03bb8f commit eb2a12f

4 files changed

Lines changed: 10 additions & 9 deletions

File tree

RcppTskit/R/RcppExports.R

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Generated by using Rcpp::compileAttributes() -> do not edit by hand
22
# Generator token: 10BE3573-1514-4C36-9D1C-5A225CD40393
33

4-
#' @title Report the version of the installed kastore C API
4+
#' @title Report the version of installed kastore C API
55
#' @details The version is stored in the installed header \code{kastore.h}.
66
#' @return A named vector with three elements \code{major}, \code{minor}, and
77
#' \code{patch}.
@@ -12,7 +12,7 @@ kastore_version <- function() {
1212
.Call(`_RcppTskit_kastore_version`)
1313
}
1414

15-
#' @title Report the version of the installed tskit C API
15+
#' @title Report the version of installed tskit C API
1616
#' @details The version is defined in the installed header \code{tskit/core.h}.
1717
#' @return A named vector with three elements \code{major}, \code{minor}, and
1818
#' \code{patch}.
@@ -110,3 +110,4 @@ test_tsk_trace_error_c <- function() {
110110
test_tsk_trace_error_cpp <- function() {
111111
invisible(.Call(`_RcppTskit_test_tsk_trace_error_cpp`))
112112
}
113+

RcppTskit/man/kastore_version.Rd

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

RcppTskit/man/tskit_version.Rd

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

RcppTskit/src/Makevars.in

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,12 @@ OBJECTS = $(TSKIT_OBJECTS) $(RCPPTSKIT_OBJECTS)
3232

3333
# Include paths and preprocessor defines
3434
# * A bit complicated include/tskit structure due to how we include tskit headers
35-
# * $(R_HOME)/include is for <R_ext/Error.h>
35+
# * $(R_INCLUDE_DIR) is for <R_ext/Error.h>
3636
PKG_CPPFLAGS = \
3737
-I../inst/include \
3838
-I../inst/include/tskit \
3939
-I../inst/include/tskit/tskit \
40-
-I$(R_HOME)/include
40+
-I$(R_INCLUDE_DIR)
4141

4242
# Compiler flags
4343
PKG_CFLAGS = -DNDEBUG # to remove calls to assert() as per the R extensions manual
@@ -46,7 +46,7 @@ PKG_CFLAGS = -DNDEBUG # to remove calls to assert() as per the R extensions manu
4646

4747
# Explicit compile rule for tskit C files
4848
tskit/%.o: tskit/%.c
49-
$(CC) $(PKG_CPPFLAGS) $(PKG_CFLAGS) $(CFLAGS) $(CPICFLAGS) -c $< -o $@
49+
$(CC) $(ALL_CPPFLAGS) $(PKG_CFLAGS) $(CFLAGS) $(CPICFLAGS) -c $< -o $@
5050

5151
# Linking
5252
PKG_LIBS = @RCPPTSKIT_LIB@

0 commit comments

Comments
 (0)