Skip to content

Does using extendr affect the minimal supported R version? #375

Open
@etiennebacher

Description

@etiennebacher

Related to etiennebacher/astgrepr#28

Compiling astgrepr from source fails on R 4.0.3 with this error:

error[E0425]: cannot find value `S4SXP` in this scope
   --> /tmp/RtmpRgdx7u/R.INSTALL1ae525e0ee11/astgrepr/src/vendor/extendr-api/src/lib.rs:574:15
    |
574 |         S4 => S4SXP,
    |               ^^^^^ not found in this scope

For more information about this error, try `rustc --explain E0425`.
error: could not compile `extendr-api` (lib) due to previous error
warning: build failed, waiting for other jobs to finish...
make: *** [Makevars:19: rust/target/release/libastgrepr.a] Error 101

I suppose this is because extendr takes advantage of new features in R, so compiling from source won't work for older versions of R. But does this mean users on R 4.0 won't be able to install the binary as well?

More generally, does using extendr affect the minimal R version supported? If so, this should be documented somewhere but I didn't find anything on this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions