extendr / extendr/libR-sys

Weird error while deteching R verison

Open
#257 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Rust
Stars
56
Forks
26
PR merge metrics
No merged PRs in 30d

Description

There is this weird bug (that I cannot reproduce outside of a very specific environment) when restoring a package from `renv`.

Basically, `build.rs` is unable to get the R version due to a `NULL` being printed before the version. There is no global R profile. The package install ok with `remotes` (even when renv is initialized).

![Image](https://github.com/user-attachments/assets/66bcd949-b10b-4553-9ede-1aae449f826e)

I think we could fix this by running this in a while loop or using an iteraton while a skip while.

![Image](https://github.com/user-attachments/assets/f4a7eca0-ed75-4145-8c7a-f9fd838ee21b)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.