summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlenn Johnson <glenn-johnson@uiowa.edu>2021-01-17 13:57:53 -0600
committerGitHub <noreply@github.com>2021-01-17 13:57:53 -0600
commit1d1d4a57963dccff676aa316bac08ff7e3b0c495 (patch)
tree81a844da4bc2d44aa196f5760ddb3dbc4aed928b
parent8a2ee437a289e0c65e5f0fa19277fb94402a7641 (diff)
downloadspack-1d1d4a57963dccff676aa316bac08ff7e3b0c495.tar.gz
spack-1d1d4a57963dccff676aa316bac08ff7e3b0c495.tar.bz2
spack-1d1d4a57963dccff676aa316bac08ff7e3b0c495.tar.xz
spack-1d1d4a57963dccff676aa316bac08ff7e3b0c495.zip
new package: r-cpp11 (#21015)
Provides a header only, C++11 interface to R's C interface. Compared to other approaches 'cpp11' strives to be safe against long jumps from the C API as well as C++ exceptions, conform to normal R function semantics and supports interaction with 'ALTREP' vectors.
-rw-r--r--var/spack/repos/builtin/packages/r-cpp11/package.py21
1 files changed, 21 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/r-cpp11/package.py b/var/spack/repos/builtin/packages/r-cpp11/package.py
new file mode 100644
index 0000000000..3177c36021
--- /dev/null
+++ b/var/spack/repos/builtin/packages/r-cpp11/package.py
@@ -0,0 +1,21 @@
+# Copyright 2013-2021 Lawrence Livermore National Security, LLC and other
+# Spack Project Developers. See the top-level COPYRIGHT file for details.
+#
+# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+
+from spack import *
+
+
+class RCpp11(RPackage):
+ """cpp11: A C++11 Interface for R's C Interface
+
+ Provides a header only, C++11 interface to R's C interface. Compared to
+ other approaches 'cpp11' strives to be safe against long jumps from the C
+ API as well as C++ exceptions, conform to normal R function semantics and
+ supports interaction with 'ALTREP' vectors."""
+
+ homepage = "https://github.com/r-lib/cpp11"
+ url = "https://cloud.r-project.org/src/contrib/cpp11_0.2.5.tar.gz"
+ list_url = "https://cloud.r-project.org/src/contrib/Archive/cpp11"
+
+ version('0.2.5', sha256='6fef9306c0c3043252c987e77c99ef679b2ea46dffafae318dbeb38ad21a2e20')