Skip to content

Commit 52e43f9

Browse files
committed
Deploying to gh-pages from @ 4a133ee 🚀
1 parent dd72c35 commit 52e43f9

14 files changed

Lines changed: 112 additions & 52 deletions

File tree

dev/MAINTENANCE.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ change, and then run `devtools::test("./cpp11test")`. Precisely, this
1515
looks like:
1616

1717
``` r
18+
1819
# Install dev cpp11, clean the cpp11test dll manually since it thinks nothing
1920
# has changed, then recompile and run its tests.
2021
devtools::install()

dev/articles/FAQ.html

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

dev/articles/FAQ.md

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ double add_some_(double x, double amount) {
101101
```
102102
103103
``` r
104+
104105
add_some <- function(x, amount = 1) {
105106
add_some_(x, amount)
106107
}
@@ -136,6 +137,7 @@ bool is_named(cpp11::strings x) {
136137
```
137138
138139
``` r
140+
139141
is_named("foo")
140142
#> [1] FALSE
141143
@@ -169,6 +171,7 @@ cpp11::writable::logicals my_both() {
169171
```
170172

171173
``` r
174+
172175
my_false()
173176
#> [1] FALSE
174177

@@ -217,6 +220,7 @@ void set_foo(cpp11::environment x, double value) {
217220
```
218221
219222
``` r
223+
220224
x <- new.env()
221225
222226
foo_exists(x)
@@ -250,6 +254,7 @@ cpp11::raws push_raws() {
250254
```
251255

252256
``` r
257+
253258
push_raws()
254259
#> [1] 68 69
255260
```
@@ -336,12 +341,13 @@ void add_one(cpp11::sexp x_sexp) {
336341
```
337342
338343
``` r
344+
339345
x <- c(1L, 2L, 3L, 4L)
340346
.Internal(inspect(x))
341-
#> @564c46e47368 13 INTSXP g0c2 [REF(2)] (len=4, tl=0) 1,2,3,4
347+
#> @5636557b5ae8 13 INTSXP g0c2 [REF(2)] (len=4, tl=0) 1,2,3,4
342348
add_one(x)
343349
.Internal(inspect(x))
344-
#> @564c46e47368 13 INTSXP g0c2 [REF(5)] (len=4, tl=0) 2,3,4,5
350+
#> @5636557b5ae8 13 INTSXP g0c2 [REF(5)] (len=4, tl=0) 2,3,4,5
345351
x
346352
#> [1] 2 3 4 5
347353
```
@@ -396,6 +402,7 @@ void test_destructor_bad() {
396402
```
397403

398404
``` r
405+
399406
test_destructor_ok()
400407
#> Error:
401408
#> ! oh no!
@@ -406,6 +413,7 @@ be destructed, and you’ll end up with a memory leak at best, and a much
406413
more sinister issue if your destructor is important:
407414

408415
``` r
416+
409417
test_destructor_bad()
410418
#> Error: oh no!
411419
```
@@ -578,6 +586,7 @@ cpp11::sexp test_extract_r_api(cpp11::strings x) {
578586
```
579587
580588
``` r
589+
581590
set.seed(123)
582591
x <- sample(letters, 1e6, replace = TRUE)
583592
@@ -590,8 +599,8 @@ bench::mark(
590599
#> # A tibble: 2 × 6
591600
#> expression min median `itr/sec` mem_alloc `gc/sec`
592601
#> <bch:expr> <bch:tm> <bch:tm> <dbl> <bch:byt> <dbl>
593-
#> 1 test_extract_cpp11(x) 40.53ms 44.56ms 21.8 0B 39.6
594-
#> 2 test_extract_r_api(x) 1.86ms 1.88ms 508. 0B 0
602+
#> 1 test_extract_cpp11(x) 39.18ms 40.09ms 23.8 0B 49.6
603+
#> 2 test_extract_r_api(x) 2.18ms 2.19ms 454. 0B 0
595604
```
596605

597606
We plan to improve on this in the future, but for now this is one of the

dev/articles/converting.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -85,13 +85,13 @@ R when you call the function.
8585

8686
### Functions
8787

88-
| Rcpp | cpp11 |
89-
|----------------------------------------------|----------------------------------------------|
90-
| `wrap()` | `as_sexp()` |
91-
| `as()` | `as_cpp()` |
88+
| Rcpp | cpp11 |
89+
|----|----|
90+
| `wrap()` | `as_sexp()` |
91+
| `as()` | `as_cpp()` |
9292
| [`stop()`](https://rdrr.io/r/base/stop.html) | [`stop()`](https://rdrr.io/r/base/stop.html) |
93-
| `checkUserInterrupt()` | `check_user_interrupt()` |
94-
| `CharacterVector::create("a", "b", "c")` | `{"a", "b", "c"}` |
93+
| `checkUserInterrupt()` | `check_user_interrupt()` |
94+
| `CharacterVector::create("a", "b", "c")` | `{"a", "b", "c"}` |
9595

9696
Note that [`cpp11::stop()`](https://rdrr.io/r/base/stop.html) and
9797
[`cpp11::warning()`](https://rdrr.io/r/base/warning.html) are thin

dev/articles/cpp11.html

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

0 commit comments

Comments
 (0)