`rig library list` errors with 'No such file or directory' on macos

Open
#462 2 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
35/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
macos, r, rust
Domain
cli

Research direction

Start from the rig system dirs output in the issue, which lists the project library root as (in-project, .rvenv/lib), and find where rig library list resolves that path in the Rust source. Reproduce on macOS with a default system R 4.6 install and check which directory the lookup expects but does not find. Done when the command lists installed libraries or prints a clear message when no project library exists.

Written by the indexing model from the issue text.

Description

Hello! Excited to try out rig; I installed r-rig via Brew and tried running rig library list without any further configuration or installations. I see ✗ No such file or directory (os error 2) after a short pause. rig appears able to find my default systemwide 4.6 installation. The website/docs led me to believe this command should work.

Here is the relevant info I could find

> rig system dirs
Mode                  admin
Architecture          arm64
R root                /Library/Frameworks/R.framework/Versions
Binary dir            /usr/local/bin
Config file           /Users/cmccartan/Library/Application Support/com.gaborcsardi.rig/config.json
Data dir              /Users/cmccartan/Library/Application Support/com.gaborcsardi.rig
Cache dir             /Users/cmccartan/Library/Caches/com.gaborcsardi.rig
Download dir          /var/folders/64/lv8c__115kj6hxqc1f9sq5zr0000gn/T/rig-501
Logs dir              /Users/cmccartan/Library/Logs/com.gaborcsardi.rig
Project library root  (in-project, .rvenv/lib)


> Rscript -e 'sessionInfo()'
R version 4.6.0 (2026-04-24)
Platform: aarch64-apple-darwin23
Running under: macOS Sequoia 15.7.4

Matrix products: default
BLAS:   /System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/libBLAS.dylib
LAPACK: /Library/Frameworks/R.framework/Versions/4.6/Resources/lib/libRlapack.dylib;  LAPACK version 3.12.1

locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8

time zone: America/New_York
tzcode source: internal

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base

loaded via a namespace (and not attached):
[1] compiler_4.6.0 tools_4.6.0
Dominant language
Rust
Stars
1k
Forks
41
Avg merge
9h 33m
Merged PRs (30d)
17

Getting set up

  • Ships a Dockerfile or Docker Compose file
  • No pull request template
  • No contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from r-lib/rig

All issues in r-lib/rig

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.