Jim Hester

Results 413 comments of Jim Hester

You can use `#if defined(__APPLE__) && defined(R_VERSION) && R_VERSION >= R_Version(3, 5, 0)` to guard `R_compact_intrange`. ALTREP is only available on R 3.5.0+ and that symbol is hidden on linux...

Put the declarations in `mypkgname_types.h` and it will be included in the generated header.

cc @thomasp85 who might have interest in this approach.

For future selves: There is some code in fs to construct the error object with custom classes (https://github.com/r-lib/fs/blob/main/src/error.cc#L5), likely something in rlang and elsewhere as well.

@gepuro is your `rpkg-api` service down permanently, or is this temporary?

Can you please add a bullet to NEWS? It should briefly [describe the change](https://style.tidyverse.org/news.html) and end with `(@yourname, #issuenumber)`.

Thanks for working on this! For issue 1. the issue is that `as_sexp("FALSE")` creates a `CHARSXP`, but the `r_string(SEXP)` constructor assumes a `STRSXP`. `CHARSXP` vectors contain `STRSXP` vectors. Rather than...

I actually can't reproduce this on my machine. ``` r bench::mark( identity(NULL), identity(NA), check = FALSE, iterations = 100000 ) #> # A tibble: 2 × 6 #> expression min...

Unfortunately there is no good universal way to limit the size of a query that works across all databases. What you can do is define a database specific version of...