@@ -146,7 +146,7 @@ is_named(c(x = "foo"))
146146#### 7. How do I return a ` cpp11::writable::logicals ` object with only a ` FALSE ` value?
147147
148148You need to use [ list
149- initialization] ( https://en.cppreference.com/w/cpp/language/list_initialization )
149+ initialization] ( https://en.cppreference.com/w/cpp/language/list_initialization.html )
150150with [ ` {} ` ] ( https://rdrr.io/r/base/Paren.html ) to create the object.
151151
152152``` cpp
@@ -338,10 +338,10 @@ void add_one(cpp11::sexp x_sexp) {
338338``` r
339339x <- c(1L, 2L, 3L, 4L)
340340.Internal(inspect(x))
341- #> @55f96daedbb8 13 INTSXP g0c2 [MARK,REF(2)] (len=4, tl=0) 1,2,3,4
341+ #> @55bb7c3055f8 13 INTSXP g0c2 [MARK,REF(2)] (len=4, tl=0) 1,2,3,4
342342add_one(x)
343343.Internal(inspect(x))
344- #> @55f96daedbb8 13 INTSXP g0c2 [MARK,REF(5)] (len=4, tl=0) 2,3,4,5
344+ #> @55bb7c3055f8 13 INTSXP g0c2 [MARK,REF(5)] (len=4, tl=0) 2,3,4,5
345345x
346346#> [1] 2 3 4 5
347347```
@@ -590,8 +590,8 @@ bench::mark(
590590#> # A tibble: 2 × 6
591591#> expression min median `itr/sec` mem_alloc `gc/sec`
592592#> <bch:expr> <bch:tm> <bch:tm> <dbl> <bch:byt> <dbl>
593- #> 1 test_extract_cpp11(x) 39.73ms 42.43ms 23.0 0B 42.2
594- #> 2 test_extract_r_api(x) 1.86ms 1.87ms 532 . 0B 0
593+ #> 1 test_extract_cpp11(x) 41.94ms 43.35ms 22.4 0B 41.0
594+ #> 2 test_extract_r_api(x) 1.86ms 1.87ms 531 . 0B 0
595595```
596596
597597We plan to improve on this in the future, but for now this is one of the
0 commit comments