-
Notifications
You must be signed in to change notification settings - Fork 22
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
Question: Is it needed to manually add R installation directory to PATH on Windows? #121
Comments
rig adds Line 48 in 8e4382a
(You need to start a new terminal for this to take effect.) Maybe you changed the PATH after that? Try to uninstall rig, and then install it again, and see if those directories are in the PATH. If they are not, that's probably a bug in rig. |
Btw, I installed rig via I tried to directly run rig installer and did see It is possible to let rig modify the current user's PATH instead of the system one? This may bypass the permission issue? |
Oh, right, I didn't know that scoop does not run the installer, but of course this does make sense. @cderv do you know a way to tell scoop to modify the path? |
Yes. Scoop should be able to add |
@cderv oh, so you can do this in the package description in the bucket? That's what you mean? |
Yes - sorry, I was not enough clear.
I'll check something before though as maybe I can make the installer run 🤔 |
@hongyuanjia can you try to update the bucket and reinstall # Update buckets' manifest
scoop update
# Update rig
scoop update -f rig This should tell you that it is added to User's PATH. From my test scoop install .\bucket\rig.json WARN Scoop uses 'aria2c' for multi-connection downloads.
WARN Should it cause issues, run 'scoop config aria2-enabled false' to disable it.
WARN To disable this warning, run 'scoop config aria2-warning-enabled false'.
Installing 'rig' (0.5.1) [64bit]
Loading rig-windows-0.5.1.exe from cache.
Checking hash of rig-windows-0.5.1.exe ... ok.
Extracting rig-windows-0.5.1.exe ... done.
Linking ~\scoop\apps\rig\current => ~\scoop\apps\rig\0.5.1
Creating shim for 'rig'.
Running post_install script...
Adding C:\Program Files\R\bin to Machine Path
'rig' (0.5.1) was installed successfully!
Notes
-----
Usage: Add the following to the end of your PowerShell $profile to get autocompletion:
# Scoop - rig autocompletion
$rig_ac=$(try { Join-Path -Path $(scoop prefix rig) -ChildPath _rig.ps1 } catch { '' })
if (Test-Path -Path $rig_ac) { & $rig_ac } |
@cderv Thanks for the quick fix! I have tested and it works. Close now. |
After I ran
rig add release
on Windows, I still could not run R directly in CMD or Powershell. I thoughtrig system make-links
would addC:\Program Files\R\bin
into systemPATH
but it did not. Do I miss step here? Or is it needed to manually add R installation directory toPATH
? Thanks!The text was updated successfully, but these errors were encountered: