Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to add existing R installation to rig #224

Open
JosiahParry opened this issue Apr 13, 2024 · 5 comments
Open

How to add existing R installation to rig #224

JosiahParry opened this issue Apr 13, 2024 · 5 comments

Comments

@JosiahParry
Copy link

I presently have 2 versions of R installed 4.3 and 4.4. However rig only knows about the 4.4 version. I tried running rig add but this started to install a new version of 4.3. Rather, I'd like to be able to run a command like rig system discover

josiahparry@Josiahs-MBP-2 ~ % rig ls
* name       version    aliases
------------------------------------------
* 4.4-arm64  (R 4.4.0)  
josiahparry@Josiahs-MBP-2 ~ % ll /Library/Frameworks/R.framework/Versions
total 16
drwxrwxr-x  6 root  admin   192 Apr 13 08:50 .
drwxrwxr-x  9 root  admin   288 Apr 13 08:50 ..
-rw-rw-r--@ 1 root  admin  6148 Jan  6 07:35 .DS_Store
drwxrwxr-x  4 root  admin   128 Apr 13 08:50 4.3-arm64
drwxrwxr-x  6 root  admin   192 Apr 13 08:50 4.4-arm64
lrwxrwxr-x  1 root  admin     9 Apr 13 08:50 Current -> 4.4-arm64
@gaborcsardi
Copy link
Member

I am not sure why the previous installation would be missing, but you can try running this:

rig system forget
rig system make-orthogonal
rig system make-links

@JosiahParry
Copy link
Author

No dice. If I run rig add will it replace my packages for 4.3? Or is it same to use rig to reinstall 4.3?

image

@gaborcsardi
Copy link
Member

I don't know, it is hard to guess in what state your installations are in. Look around and see if 4.3-arm64 is working at all, e.g. set the Current link back to that and try start it up.

@JosiahParry
Copy link
Author

@gaborcsardi do you know where I can find the logic that rig uses to find existing installs? Perhaps I can make a PR that checks other default locations as well

@gaborcsardi
Copy link
Member

gaborcsardi commented Sep 7, 2024

Here:

pub const R_ROOT: &str = "/Library/Frameworks/R.framework/Versions";

But why not just reinstall it with rig? It literally takes a two minutes....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants