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

Support aliases like R-next and R-devel on Windows and macOS as well #108

Closed
30 of 33 tasks
gaborcsardi opened this issue Jul 18, 2022 · 4 comments
Closed
30 of 33 tasks
Labels
feature a feature request or enhancement

Comments

@gaborcsardi
Copy link
Member

gaborcsardi commented Jul 18, 2022

Maybe even R-oldrel.

They could be updated manually:

rig alias add
rig alias update

macOS

  • rig add add alias if installed by alias.
  • rig rm remove alias to removed version.
  • rig list should include aliases.
  • rig list --json should include aliases.
  • rig default <ver> should work with aliases.
  • rig rm <ver> should work with aliases.
  • rig rstudio <ver> should work with aliases.
  • rig system subcommands should work with aliases.
  • rig alias list to list current aliases.
  • rig alias update to update aliases according to the R versions API.
  • rig system make-links should update aliases.

Windows

  • rig add add alias if installed by alias.
  • rig rm remove alias to removed version.
  • rig list should include aliases.
  • rig list --json should include aliases.
  • rig default <ver> should work with aliases.
  • rig rm <ver> should work with aliases.
  • rig rstudio <ver> should work with aliases.
  • rig system subcommands should work with aliases.
  • rig alias list to list current aliases.
  • rig alias update to update aliases according to the R versions API.
  • rig system make-links should update aliases.

Linux

  • rig add add alias if installed by alias.
  • rig rm remove alias to removed version.
  • rig list should include aliases.
  • rig list --json should include aliases.
  • rig default <ver> should work with aliases.
  • rig rm <ver> should work with aliases.
  • rig rstudio <ver> should work with aliases.
  • rig system subcommands should work with aliases.
  • rig alias list to list current aliases.
  • rig alias update to update aliases according to the R versions API.
  • rig system make-links should update aliases.
@gaborcsardi gaborcsardi added the feature a feature request or enhancement label Jul 18, 2022
@gaborcsardi
Copy link
Member Author

  • We could add aliases at install time. Every time we install a version using an alias, we add that as an alias. E.g. rig add next will add R-next. When we call rig add next again, then we update the alias. (It might refer to a new version now.)
  • We can also update aliases with rig alias update.
  • rig alias update can have an option to add "standard" aliases: oldrel, next, release, devel.

@gaborcsardi gaborcsardi mentioned this issue Jul 23, 2022
@gaborcsardi
Copy link
Member Author

OTOH, it is probably not worth adding a new rig alias command for this. rig ls already lists the aliases, and rig system make-links could also update the aliases, unless opt out.

@gaborcsardi
Copy link
Member Author

I'll update rig system make-links later.

@gaborcsardi
Copy link
Member Author

Actually, I like this as it is. It would be weird to update aliases from system make-links, if no new version is installed.

Instead we could have a rig system update-aliases subcommand, but we could wait with that until we have generic, user-defined aliases.

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

No branches or pull requests

1 participant