-
Notifications
You must be signed in to change notification settings - Fork 49
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
17 changed files
with
59 additions
and
126 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
Package: cpp11 | ||
Title: A C++11 Interface for R's C Interface | ||
Version: 0.5.1 | ||
Version: 0.5.1.9000 | ||
Authors@R: | ||
c( | ||
person("Davis", "Vaughan", email = "[email protected]", role = c("aut", "cre"), comment = c(ORCID = "0000-0003-4777-038X")), | ||
|
@@ -18,7 +18,7 @@ License: MIT + file LICENSE | |
URL: https://cpp11.r-lib.org, https://github.com/r-lib/cpp11 | ||
BugReports: https://github.com/r-lib/cpp11/issues | ||
Depends: | ||
R (>= 3.6.0) | ||
R (>= 4.0.0) | ||
Suggests: | ||
bench, | ||
brio, | ||
|
@@ -54,4 +54,4 @@ Config/Needs/cpp11/cpp_register: | |
vctrs | ||
Encoding: UTF-8 | ||
Roxygen: list(markdown = TRUE) | ||
RoxygenNote: 7.3.1 | ||
RoxygenNote: 7.3.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,6 @@ | ||
#pragma once | ||
|
||
#include "Rversion.h" | ||
|
||
#if defined(R_VERSION) && R_VERSION >= R_Version(3, 5, 0) | ||
// It would be nice to remove this since all supported versions of R have ALTREP, but | ||
// some groups rely on both this `#define` and `altrep.hpp` itself existing, like arrow: | ||
// https://github.com/r-lib/cpp11/issues/413 | ||
#define HAS_ALTREP | ||
#endif | ||
|
||
#ifndef HAS_ALTREP | ||
|
||
#define ALTREP(x) false | ||
|
||
#define REAL_ELT(x, i) REAL(x)[i] | ||
#define INTEGER_ELT(x, i) INTEGER(x)[i] | ||
#define LOGICAL_ELT(x, i) LOGICAL(x)[i] | ||
#define RAW_ELT(x, i) RAW(x)[i] | ||
|
||
#define SET_REAL_ELT(x, i, val) REAL(x)[i] = val | ||
#define SET_INTEGER_ELT(x, i, val) INTEGER(x)[i] = val | ||
#define SET_LOGICAL_ELT(x, i, val) LOGICAL(x)[i] = val | ||
#define SET_RAW_ELT(x, i, val) RAW(x)[i] = val | ||
|
||
#define REAL_GET_REGION(...) \ | ||
do { \ | ||
} while (false) | ||
|
||
#define INTEGER_GET_REGION(...) \ | ||
do { \ | ||
} while (false) | ||
#endif | ||
|
||
#if !defined HAS_ALTREP || (defined(R_VERSION) && R_VERSION < R_Version(3, 6, 0)) | ||
|
||
#define LOGICAL_GET_REGION(...) \ | ||
do { \ | ||
} while (false) | ||
|
||
#define RAW_GET_REGION(...) \ | ||
do { \ | ||
} while (false) | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters