|
73 | 73 | <div id="content"> |
74 | 74 | <div class="content-wrapper"> |
75 | 75 | <div class="content-main"> |
76 | | -<p># cpp4r</p> |
77 | 76 |
|
78 | | -<p><a href="https://lifecycle.r-lib.org/articles/stages.html#stable"><img src="https://img.shields.io/badge/lifecycle-stable-brightgreen.svg" alt="Lifecycle: |
| 77 | +<!-- README.md is generated from README.Rmd. Please edit that file --> |
| 78 | + |
| 79 | +<h1>cpp4r</h1> |
| 80 | + |
| 81 | +<!-- badges: start --> |
| 82 | + |
| 83 | +<a href="https://lifecycle.r-lib.org/articles/stages.html#stable"><img src="https://img.shields.io/badge/lifecycle-stable-brightgreen.svg" alt="Lifecycle: |
79 | 84 | stable"></a> |
80 | 85 | <a href="https://github.com/pachadotdev/cpp4r/actions/workflows/R-CMD-check.yaml"><img src="https://github.com/pachadotdev/cpp4r/actions/workflows/R-CMD-check.yaml/badge.svg" alt="R-CMD-check"></a> |
81 | 86 | <a href="https://CRAN.R-project.org/package=cpp4r"><img src="https://www.r-pkg.org/badges/version/cpp4r" alt="CRAN |
82 | 87 | status"></a> |
83 | 88 | <a href="https://github.com/pachadotdev/cpp4r/actions/workflows/test-coverage.yaml"><img src="https://raw.githubusercontent.com/pachadotdev/cpp4r/coverage/badges/coverage.svg" alt="Test |
84 | 89 | coverage"></a> |
85 | 90 | <a href="https://buymeacoffee.com/pacha"><img src="https://raw.githubusercontent.com/pachadotdev/buymeacoffee-badges/main/bmc-yellow.svg" alt="BuyMeACoffee"></a> |
86 | | -<!-- badges: end --></p> |
| 91 | +<!-- badges: end --> |
87 | 92 |
|
88 | 93 | <p>cpp4r helps you to interact with R objects using C++ code. It is a fork |
89 | 94 | of the <a href="https://cran.r-project.org/package=cpp11">cpp11</a> package with |
|
109 | 114 | <li><input type="checkbox" checked disabled> Support bidirectional passing of complex numbers/vectors.</li> |
110 | 115 | <li><input type="checkbox" checked disabled> Provide flexibility with data types (e.g., cpp4r’s <code>as_integers()</code> and <code>as_doubles()</code> accept logical inputs while cpp11’s do not).</li> |
111 | 116 | <li><input type="checkbox" checked disabled> Some internal optimizations for better speed (e.g., <a href="https://github.com/r-lib/cpp11/pull/463">https://github.com/r-lib/cpp11/pull/463</a> and <a href="https://github.com/r-lib/cpp11/pull/430">https://github.com/r-lib/cpp11/pull/430</a>).</li> |
112 | | -</ul> |
113 | | -## Getting started |
| 117 | +</ul><h2>Getting started</h2> |
114 | 118 |
|
115 | 119 | <p>Check the <a href="https://cpp4r.org/">documentation</a> to get started using cpp4r |
116 | 120 | in your scripts, particularly if you are new to C++ programming.</p> |
117 | 121 |
|
118 | | -<p>## Using cpp4r in a package</p> |
| 122 | +<h2>Using cpp4r in a package</h2> |
119 | 123 |
|
120 | 124 | <p>Create a new package with <code>cpp4r::pkg_template("~/path/to/mypkg")</code> and |
121 | 125 | then edit the generated files.</p> |
|
138 | 142 | use a shared library. It is straightforward and reliable to use in |
139 | 143 | packages without fear of compile-time and run-time mismatches.</p> |
140 | 144 |
|
141 | | -<p>## Vendoring</p> |
| 145 | +<h2>Vendoring</h2> |
142 | 146 |
|
143 | 147 | <p>You can <a href="https://cpp4r.org/articles/01-motivations.html">vendor</a> the |
144 | 148 | current installed version of cpp4r headers into your package with |
|
154 | 158 | that you will not get bug fixes and new features unless you update the |
155 | 159 | vendored headers.</p> |
156 | 160 |
|
157 | | -<p>## Getting help</p> |
| 161 | +<h2>Getting help</h2> |
158 | 162 |
|
159 | 163 | <p>Please open an issue or email me. I will do my best to respond before 48 |
160 | 164 | hours.</p> |
161 | 165 |
|
162 | | -<p>## Contributing</p> |
| 166 | +<h2>Contributing</h2> |
163 | 167 |
|
164 | 168 | <p>Contributions are welcome! Please see the <a href="https://cpp4r.org/articles/15-internals.html">internals |
165 | 169 | vignette</a> for details |
166 | 170 | about design choices and coding style.</p> |
167 | 171 |
|
168 | | -<p>## Code of Conduct</p> |
| 172 | +<h2>Code of Conduct</h2> |
169 | 173 |
|
170 | 174 | <p>Please note that the cpp4r project is released with a <a href="https://cpp4r.org/CODE_OF_CONDUCT.html">Contributor Code |
171 | 175 | of Conduct</a>. By contributing to |
172 | 176 | this project, you agree to abide by its terms.</p> |
173 | 177 | </div> |
174 | | -<footer><p>Last updated: 2025-10-12 19:45:53</p> |
| 178 | +<footer><p>Last updated: 2025-10-12 22:30:17</p> |
175 | 179 | </footer><script> |
176 | 180 | document.addEventListener('DOMContentLoaded', function() { |
177 | 181 | // Theme toggle functionality |
|
0 commit comments