From 96a458bc4243ea8e0c7a659de4199159e8d603a7 Mon Sep 17 00:00:00 2001 From: Dirk Eddelbuettel Date: Sun, 13 Jun 2021 11:51:32 -0500 Subject: [PATCH 1/3] try Rcpp/Rcpp --- inst/include/Rcpp/Rcpp | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 inst/include/Rcpp/Rcpp diff --git a/inst/include/Rcpp/Rcpp b/inst/include/Rcpp/Rcpp new file mode 100644 index 000000000..587ad2fa6 --- /dev/null +++ b/inst/include/Rcpp/Rcpp @@ -0,0 +1,7 @@ +// New (draft) catch all header + +// With (at least) one (potentially) breaking change +// (but also note r/headers.h) +#define STRICT_R_HEADERS + +#include From d0bad4dfe9d1fcb9cfc95e2805617450edd2e851 Mon Sep 17 00:00:00 2001 From: Dirk Eddelbuettel Date: Wed, 18 Aug 2021 20:30:08 -0500 Subject: [PATCH 2/3] switch to Light, Lighter, Lightest --- inst/include/Rcpp/Light | 7 +++++++ inst/include/Rcpp/Lighter | 7 +++++++ inst/include/Rcpp/Lightest | 7 +++++++ 3 files changed, 21 insertions(+) create mode 100644 inst/include/Rcpp/Light create mode 100644 inst/include/Rcpp/Lighter create mode 100644 inst/include/Rcpp/Lightest diff --git a/inst/include/Rcpp/Light b/inst/include/Rcpp/Light new file mode 100644 index 000000000..2d1bb3001 --- /dev/null +++ b/inst/include/Rcpp/Light @@ -0,0 +1,7 @@ +// New (draft) header with optional components off + +// no Modules +#define RCPP_NO_MODULES + +// include Rcpp as usual +#include diff --git a/inst/include/Rcpp/Lighter b/inst/include/Rcpp/Lighter new file mode 100644 index 000000000..144f22ca5 --- /dev/null +++ b/inst/include/Rcpp/Lighter @@ -0,0 +1,7 @@ +// New (draft) header with optional components off + +// no RTTI (actually implies no Modules) -- solid gain +#define RCPP_NO_RTTI + +// include Rcpp/Light which includes Rcpp +#include diff --git a/inst/include/Rcpp/Lightest b/inst/include/Rcpp/Lightest new file mode 100644 index 000000000..5629ae2aa --- /dev/null +++ b/inst/include/Rcpp/Lightest @@ -0,0 +1,7 @@ +// New (draft) header with optional components off + +// no Sugar (but unclear how much it helps) +#define RCPP_NO_SUGAR + +// include Rcpp/Lighter +#include From 022bac65368fd19246f57cd036761485d7efffbe Mon Sep 17 00:00:00 2001 From: Dirk Eddelbuettel Date: Wed, 8 Dec 2021 16:41:30 -0600 Subject: [PATCH 3/3] add alternate headers with proper copyright headers --- ChangeLog | 7 +++++++ inst/include/Rcpp/Light | 20 +++++++++++++++++++- inst/include/Rcpp/Lighter | 20 +++++++++++++++++++- inst/include/Rcpp/Lightest | 19 +++++++++++++++++++ inst/include/Rcpp/Rcpp | 24 +++++++++++++++++++----- 5 files changed, 83 insertions(+), 7 deletions(-) diff --git a/ChangeLog b/ChangeLog index d7100b382..2791147f6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2021-12-08 Dirk Eddelbuettel + + * inst/include/Rcpp/Rcpp: Added as new entry point + * inst/include/Rcpp/Light: Added as lighter-weight entry point + * inst/include/Rcpp/Lighter: Idem + * inst/include/Rcpp/Lightest: Idem + 2021-11-30 Dirk Eddelbuettel * README.md: Remove Travis badge diff --git a/inst/include/Rcpp/Light b/inst/include/Rcpp/Light index 2d1bb3001..dffc88d97 100644 --- a/inst/include/Rcpp/Light +++ b/inst/include/Rcpp/Light @@ -1,4 +1,22 @@ -// New (draft) header with optional components off +// Rcpp/Light: R/C++ interface class library -- without Rcpp Modules +// +// Copyright (C) 2008 - 2021 Dirk Eddelbuettel +// Copyright (C) 2009 - 2021 Dirk Eddelbuettel and Romain Francois +// +// This file is part of Rcpp. +// +// Rcpp is free software: you can redistribute it and/or modify it +// under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 2 of the License, or +// (at your option) any later version. +// +// Rcpp is distributed in the hope that it will be useful, but +// WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with Rcpp. If not, see . // no Modules #define RCPP_NO_MODULES diff --git a/inst/include/Rcpp/Lighter b/inst/include/Rcpp/Lighter index 144f22ca5..78b56e5b5 100644 --- a/inst/include/Rcpp/Lighter +++ b/inst/include/Rcpp/Lighter @@ -1,4 +1,22 @@ -// New (draft) header with optional components off +// Rcpp/Lighter: R/C++ interface class library -- without Rcpp Modules + RTTI +// +// Copyright (C) 2008 - 2021 Dirk Eddelbuettel +// Copyright (C) 2009 - 2021 Dirk Eddelbuettel and Romain Francois +// +// This file is part of Rcpp. +// +// Rcpp is free software: you can redistribute it and/or modify it +// under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 2 of the License, or +// (at your option) any later version. +// +// Rcpp is distributed in the hope that it will be useful, but +// WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with Rcpp. If not, see . // no RTTI (actually implies no Modules) -- solid gain #define RCPP_NO_RTTI diff --git a/inst/include/Rcpp/Lightest b/inst/include/Rcpp/Lightest index 5629ae2aa..cd501c796 100644 --- a/inst/include/Rcpp/Lightest +++ b/inst/include/Rcpp/Lightest @@ -1,3 +1,22 @@ +// Rcpp/Lightest: R/C++ interface class library -- without Rcpp Modules, RTTI, Sugar +// +// Copyright (C) 2008 - 2021 Dirk Eddelbuettel +// Copyright (C) 2009 - 2021 Dirk Eddelbuettel and Romain Francois +// +// This file is part of Rcpp. +// +// Rcpp is free software: you can redistribute it and/or modify it +// under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 2 of the License, or +// (at your option) any later version. +// +// Rcpp is distributed in the hope that it will be useful, but +// WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with Rcpp. If not, see . // New (draft) header with optional components off // no Sugar (but unclear how much it helps) diff --git a/inst/include/Rcpp/Rcpp b/inst/include/Rcpp/Rcpp index 587ad2fa6..eef8b8894 100644 --- a/inst/include/Rcpp/Rcpp +++ b/inst/include/Rcpp/Rcpp @@ -1,7 +1,21 @@ -// New (draft) catch all header - -// With (at least) one (potentially) breaking change -// (but also note r/headers.h) -#define STRICT_R_HEADERS +// Rcpp/Rcpp: R/C++ interface class library +// +// Copyright (C) 2008 - 2021 Dirk Eddelbuettel +// Copyright (C) 2009 - 2021 Dirk Eddelbuettel and Romain Francois +// +// This file is part of Rcpp. +// +// Rcpp is free software: you can redistribute it and/or modify it +// under the terms of the GNU General Public License as published by +// the Free Software Foundation, either version 2 of the License, or +// (at your option) any later version. +// +// Rcpp is distributed in the hope that it will be useful, but +// WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +// GNU General Public License for more details. +// +// You should have received a copy of the GNU General Public License +// along with Rcpp. If not, see . #include